Integration with Pydantic AI #5036
Replies: 2 comments 1 reply
-
Thanks for sharing! On the documentation page of PydanticAI only their commercial product is highlighted. Are you aware of any open instrumentation hooks here? Otherwise this might be a limitation of PydanticAI. |
Beta Was this translation helpful? Give feedback.
-
Update: Pydantic AI supports instrumentation via OpenTelemetry via the logfire sdk according to this page
I was not aware that the logfire instrumentation for Pydantic AI allows for this as the documentation is focused on the Logfire service. Adding an OpenTelemetry collector to Langfuse is planned, this should solve for automated tracing of Pydantic AI in Langfuse. We track this here: https://github.com/orgs/langfuse/discussions/2509 |
Beta Was this translation helpful? Give feedback.
-
Describe the feature or potential improvement
I am using Pydantic AI for orchestrating LLM workflows. I love it.
However, it supports primarily Pydantic Logfire, which is an monitoring platform also developed by the Pydantic team.
Unfortunately, it lacks the intuitive trace analysis and dashboard that LangFuse is good good at.
Since Pydantic is so popular for Structured Output, and Pydantic AI is also gaining momentum, I wonder if LangFuse has plan to develop integration components for it?
Additional information
Pydantic AI's section on
Debugging and Monitoring
:https://ai.pydantic.dev/logfire/#using-logfire
Beta Was this translation helpful? Give feedback.
All reactions