Agent with OpenRouter¶
- 
Add your
OPENROUTER_API_KEYin the.envfile - 
Select your model_name like
openrouter/google/palm-2-chat-bisonfollows LiteLLM conventions - 
Execute your agent!
 
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="openrouter/google/palm-2-chat-bison",
    system_prompt="Agent system prompt here",
    agent_description="Agent performs financial analysis.",
)
# Run a query
agent.run("What are the components of a startup's stock incentive equity plan?")