You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also needs POST messages to be shown with the right trace/parent span.
E.g. if I run the following I see:
frompydantic_aiimportAgentfrompydantic_ai.mcpimportMCPServerHTTPimportlogfirelogfire.configure()
logfire.instrument_httpx()
logfire.instrument_pydantic_ai()
server=MCPServerHTTP(url='http://localhost:3001/sse')
agent=Agent('openai:gpt-4o', mcp_servers=[server])
asyncdefmain():
asyncwithagent.run_mcp_servers():
result=awaitagent.run('How many days between 2000-01-01 and 2025-03-18?')
print(result.data)
#> There are 9,208 days between January 1, 2000, and March 18, 2025.if__name__=='__main__':
importasyncioasyncio.run(main())
I see:
All those posts to localhost/messages should be within the agent run trace
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Description
Idea is to instrument:
Needs:
Also needs POST messages to be shown with the right trace/parent span.
E.g. if I run the following I see:
I see:
All those posts to
localhost/messages
should be within the agent run traceThe text was updated successfully, but these errors were encountered: