Skip to content

Commit

Permalink
feat: coding agent
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragts committed Nov 14, 2024
1 parent 3cf86a9 commit 640c4c6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cookbook/playground/ollama_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@
markdown=True,
)

coding_agent = Agent(
name="Coding Agent",
agent_id="coding_agent",
model=Ollama(id="hhao/qwen2.5-coder-tools:32b"),
reasoning=True,
markdown=True,
debug_mode=True,
add_history_to_messages=True,
description="You are a coding agent",
add_datetime_to_instructions=True,
storage=SqlAgentStorage(table_name="coding_agent", db_file=local_agent_storage_file),
)


youtube_agent = Agent(
name="YouTube Agent",
Expand All @@ -69,7 +82,7 @@
markdown=True,
)

app = Playground(agents=[web_agent, finance_agent, youtube_agent]).get_app()
app = Playground(agents=[web_agent, finance_agent, youtube_agent, coding_agent]).get_app()

if __name__ == "__main__":
serve_playground_app("ollama_agents:app", reload=True)

0 comments on commit 640c4c6

Please sign in to comment.