[DOCS][Cohere Example]

pull/739/head
Kye Gomez 3 months ago
parent 33e01f28ee
commit f999f6942a

@ -18,7 +18,6 @@ agent = Agent(
system_prompt="Agent system prompt here", system_prompt="Agent system prompt here",
agent_description="Agent performs financial analysis.", agent_description="Agent performs financial analysis.",
llm=model, llm=model,
long_term_memory=chromadb_memory,
) )
# Run a query # Run a query

@ -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?")
```
Loading…
Cancel
Save