File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ async def run(mcp_server: MCPServer):
15
15
name = "Assistant" ,
16
16
instructions = "Use the tools to answer the questions." ,
17
17
mcp_servers = [mcp_server ],
18
- model_settings = ModelSettings (tool_choice = "required" ),
18
+ model = "gpt-4o" ,
19
+ model_settings = ModelSettings (tool_choice = "auto" , temperature = 0.08 , top_p = 0.8 ),
19
20
)
20
21
21
22
# Use the `add` tool to add two numbers
@@ -36,6 +37,11 @@ async def run(mcp_server: MCPServer):
36
37
result = await Runner .run (starting_agent = agent , input = message )
37
38
print (result .final_output )
38
39
40
+ message = "What's the capital of France?"
41
+ print (f"\n \n Running: { message } " )
42
+ result = await Runner .run (starting_agent = agent , input = message )
43
+ print (result .final_output )
44
+
39
45
40
46
async def main ():
41
47
async with MCPServerSse (
You can’t perform that action at this time.
0 commit comments