Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

AgentEventLogger throws exceptions if non-streaming response objects are passed to it. #15

@deanwampler

Description

@deanwampler

The documentation doesn't make it clear that EventLogger in src/llama_stack_client/lib/agents/event_logger.py only works with streaming responses. For example, if you play with this getting started example for llama-stack, where you change the stream argument for agent.create_turn() to False, you'll get an exception in the logger call.

It would be nice if the logger could handle non-streaming responses. At the very least, clearly documenting the current behavior somewhere would save new users some wasted time trying to debug crashes. This should be done in at least two places: https://github.com/llamastack/llama-stack-client-python/blob/main/api.md (or a better readthedocs site for the client!) and in llama-stack example code that uses this API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions