Skip to content

Commit

Permalink
[DOCS][Cohere Example]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 10, 2025
1 parent 33e01f2 commit f999f69
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/swarms/examples/claude.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ agent = Agent(
system_prompt="Agent system prompt here",
agent_description="Agent performs financial analysis.",
llm=model,
long_term_memory=chromadb_memory,
)

# Run a query
Expand Down
25 changes: 25 additions & 0 deletions docs/swarms/examples/cohere.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Agent with Cohere

- Add your `COHERE_API_KEY` in the `.env` file
- Select your model_name like `command-r` follows LiteLLM conventions


```python
from swarms import Agent
import os
from dotenv import load_dotenv

load_dotenv()

# Initialize the agent with ChromaDB memory
agent = Agent(
agent_name="Financial-Analysis-Agent",
model_name="command-r",
system_prompt="Agent system prompt here",
agent_description="Agent performs financial analysis.",
llm=model,
)

# Run a query
agent.run("What are the components of a startup's stock incentive equity plan?")
```

0 comments on commit f999f69

Please sign in to comment.