Skip to content

Gemini session id in Event #4558

@ZachTB123

Description

@ZachTB123

Is your feature request related to a specific problem?

For context, I'm using gemini models only, so my examples will be specific to that model, though a generalized solution would be welcome. I'm specifically using the gemini-live-2.5-flash-native-audio model currently.

If we encounter issues with the Gemini model, we will open a ticket in the GCP console to get support. One of the things that Google will request is the session id from the llm interaction. As far as I know, the session id from the underlying llm connection is not exposed through the yielded events that come from the llm agent. Would it be possible to get this surfaced in those events somehow so we can add them to our logs? This would make dealing with support tickets much easier.

Describe the Solution You'd Like

Yielded events from a llm agent have the session id as an attribute or it's part of the event's metadata.

Impact on your work

Without this, it's hard to get good support from Google on issues that we face with the model.

Willingness to contribute

No


🟡 Recommended Information

Describe Alternatives You've Considered

N/A

Proposed API / Implementation

N/A

Additional Context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    tracing[Component] This issue is related to OpenTelemetry tracing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions