Skip to content

Commit a8b51f3

Browse files
committed
vllm docs and cleanup
1 parent 50d646d commit a8b51f3

14 files changed

+51624
-498
lines changed

agent_mcp_test.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
from swarms import Agent
3+
from swarms.prompts.finance_agent_sys_prompt import (
4+
FINANCIAL_AGENT_SYS_PROMPT,
5+
)
6+
from swarms.tools.mcp_integration import MCPServerSseParams
7+
8+
server_one = MCPServerSseParams(
9+
url="http://127.0.0.1:6274",
10+
headers={"Content-Type": "application/json"},
11+
)
12+
13+
# Initialize the agent
14+
agent = Agent(
15+
agent_name="Financial-Analysis-Agent",
16+
agent_description="Personal finance advisor agent",
17+
system_prompt=FINANCIAL_AGENT_SYS_PROMPT,
18+
max_loops=1,
19+
mcp_servers=[server_one],
20+
output_type="final",
21+
)
22+
23+
out = agent.run("Use the add tool to add 2 and 2")
24+
25+
print(type(out))

cleanup_and_publish.sh

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ black . && echo "✅ Code formatting complete!" || echo "❌ Black formatting fa
77
echo "🔍 Running Ruff linter..."
88
ruff check . --fix && echo "✅ Linting complete!" || echo "❌ Linting failed!"
99

10+
11+
echo "Creating llm.txt file..."
12+
python3 llm_txt.py && echo "✅ llm.txt file created!" || echo "❌ llm.txt file creation failed!"
13+
1014
echo "🏗️ Building package..."
1115
poetry build && echo "✅ Build successful!" || echo "❌ Build failed!"
1216

docs/llm.txt

+50,247
Large diffs are not rendered by default.

docs/mkdocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ nav:
283283
- Ollama: "swarms/examples/ollama.md"
284284
- OpenRouter: "swarms/examples/openrouter.md"
285285
- XAI: "swarms/examples/xai.md"
286+
- VLLM: "swarms/examples/vllm_integration.md"
286287
- Swarms Tools:
287288
- Agent with Yahoo Finance: "swarms/examples/yahoo_finance.md"
288289
- Twitter Agents: "swarms_tools/twitter.md"
@@ -299,6 +300,7 @@ nav:
299300
- Group Chat Example: "swarms/examples/groupchat_example.md"
300301
- Meme Agent Builder: "swarms/examples/meme_agents.md"
301302
- Sequential Workflow Example: "swarms/examples/sequential_example.md"
303+
- ConcurrentWorkflow with VLLM Agents: "swarms/examples/vllm.md"
302304
- External Agents:
303305
- Swarms of Browser Agents: "swarms/examples/swarms_of_browser_agents.md"
304306
- Swarms UI:

0 commit comments

Comments
 (0)