Skip to content

Commit

Permalink
[MODEL DOCS]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Jan 10, 2025
1 parent e15bd06 commit a4fe0a0
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/swarms/examples/openrouter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Agent with XAI

- Add your `OPENROUTER_API_KEY` in the `.env` file

- Select your model_name like `openrouter/google/palm-2-chat-bison` follows [LiteLLM conventions](https://docs.litellm.ai/docs/providers/openrouter)

- Execute your agent!


```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="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?")
```
27 changes: 27 additions & 0 deletions docs/swarms/examples/xai.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Agent with XAI

- Add your `XAI_API_KEY` in the `.env` file

- Select your model_name like `xai/grok-beta` follows [LiteLLM conventions](https://docs.litellm.ai/docs/providers/xai)

- Execute your agent!


```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="xai/grok-beta",
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?")
```

0 comments on commit a4fe0a0

Please sign in to comment.