Skip to content

Commit 617b220

Browse files
committed
basic agent bought over
1 parent b5802fc commit 617b220

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

examples/mcp_basic_agent/main.py

+12-14
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def example_usage():
2828
as well as the ability to fetch URLs. Your job is to identify
2929
the closest match to a user's request, make the appropriate tool calls,
3030
and return the URI and CONTENTS of the closest match.""",
31-
server_names=["curl", "filesystem"],
31+
server_names=["fetch", "filesystem"],
3232
)
3333

3434
async with finder_agent:
@@ -44,19 +44,17 @@ async def example_usage():
4444

4545
# Let's switch the same agent to a different LLM
4646
llm = await finder_agent.attach_llm(AnthropicAugmentedLLM)
47-
# Let's switch the same agent to a different LLM
48-
# llm = await finder_agent.attach_llm(AnthropicAugmentedLLM)
49-
50-
# result = await llm.generate_str(
51-
# message="Print the first 2 paragraphs of https://www.anthropic.com/research/building-effective-agents",
52-
# )
53-
# logger.info(f"Result: {result}")
54-
55-
# Multi-turn conversations
56-
# result = await llm.generate_str(
57-
# message="Summarize those paragraphs in a 128 character tweet",
58-
# )
59-
# logger.info(f"Result: {result}")
47+
48+
result = await llm.generate_str(
49+
message="Print the first 2 paragraphs of https://www.anthropic.com/research/building-effective-agents",
50+
)
51+
logger.info(f"Result: {result}")
52+
53+
# Multi-turn conversations
54+
result = await llm.generate_str(
55+
message="Summarize those paragraphs in a 128 character tweet",
56+
)
57+
logger.info(f"Result: {result}")
6058

6159
# Make sure to shut down logging cleanly
6260
await LoggingConfig.shutdown()

examples/mcp_basic_agent/mcp_agent.config.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@ logger:
1414

1515
mcp:
1616
servers:
17-
curl:
18-
command: "node"
19-
args:
20-
[
21-
"C:\\Program Files\\nodejs\\node_modules\\@mcp-get-community\\server-curl\\dist\\index.js",
22-
# "-y",
23-
# "@mcp-get-community/server-curl"
24-
]
17+
fetch:
18+
command: "uvx"
19+
args: ["mcp-server-fetch"]
2520
filesystem:
2621
command: "npx"
2722
args: ["-y", "@modelcontextprotocol/server-filesystem"]

goose

-1
This file was deleted.

0 commit comments

Comments
 (0)