Skip to content

Let OTel events from Logfire be deserialized into ModelMessagesΒ #2472

@DouweM

Description

@DouweM

This would be the inverse of InstrumentationSettings.messages_to_otel_events.

This would allow re-running a past conversation by passing these messages to agent.run as message_history.

I believe all the necessary information to build the messages and their parts are in the events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions