Replies: 1 comment
-
Hi @VMinB12, thanks for raising this! I have chatted with many teams building complex stateful agents and think this generalizes well to a more state-based system where the state of the application can change throughout the trace. Introduce Options to adapt the langfuse data model to enable this:
Open questions: Is there a single "global" state within a single agent execution or can there by multiple states at different levels. I think we need the latter here to support multiple nested levels of agent state. As observations are nested in langfuse, we could visualize state changes on each grouping level and default to the global/trace-level. Would love to hear your thoughts, this is not high yet on the very near-term roadmap but something I am very excited about and would love to push. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature or potential improvement
First off, thank you for creating this open source tool. It's really wonderful and excellent.
One feature that I think will be really nice and would allow Langfuse to distinguish itself from competitors, is to add better support for graph visualisation. Most LLM applications can be represented as a graph. And the execution flow can be considered as traversing through the graph.
Graph-based agents are all the rage/hype these days and I expect it will become even more so in the future. Providing this feature sooner rather than later may significantly help adoption of this platform for those use cases.
Some competitors are:
I haven't used agentops, but they don't seem to have the graph visualisation yet. I'm sure they'll add it soon enough. Langgraph Cloud is a great example of visualizing the graph and the flow of execution.
I intentionally let the exact visualization a bit vague as to allow for sufficient creativity in the implementation. For a more concrete idea of what I would want myself, see this Langgraph Cloud example. Triggering the graph execution from the Langfuse UI should be out of scope imo, but ideally there would be a "playback slider" allowing the user to slide through the execution flow of graph traces.
Interested to know your thoughts!
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions