File tree Expand file tree Collapse file tree 4 files changed +652
-12
lines changed Expand file tree Collapse file tree 4 files changed +652
-12
lines changed Original file line number Diff line number Diff line change 1
- 3.12
1
+ 3.10
Original file line number Diff line number Diff line change 13
13
import os
14
14
15
15
from mcp import StdioServerParameters
16
- # from smolagents import CodeAgent, HfApiModel
16
+ from smolagents import CodeAgent , HfApiModel
17
17
18
18
from mcpadapt .core import MCPAdapt
19
19
from mcpadapt .smolagents_adapter import SmolAgentsAdapter
27
27
SmolAgentsAdapter (),
28
28
) as tools :
29
29
print (tools [0 ](request = {"term" : "efficient treatment hangover" }))
30
- # agent = CodeAgent(tools=tools, model=HfApiModel())
31
- # agent.run("Find studies about hangover?")
30
+ agent = CodeAgent (tools = tools , model = HfApiModel ())
31
+ agent .run ("Find studies about hangover?" )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "mcpadapt"
3
3
dynamic = [" version" ]
4
4
description = " Adapt MCP servers to many agentic framework."
5
5
readme = " README.md"
6
- requires-python = " >=3.12 "
6
+ requires-python = " >=3.10 "
7
7
dependencies = [
8
8
" mcp>=1.2.0" ,
9
9
" jsonref>=1.1.0" ,
You can’t perform that action at this time.
0 commit comments