Skip to content

Leave the user the option to use Sequence[userContent] in ToolReturn return_value #3432

@all-mute

Description

@all-mute

Description

Thank you for developing and maintaining pydantic ai!

Context:
When output of (20) tool call are mediafiles, I have situation like that:
Image

All LLM providers recommend to interleave multimodal content.

FR:
Let framework's user ability to use Sequence[userContent] in ToolReturn return_value

References

https://ai.pydantic.dev/api/messages/#pydantic_ai.messages.ToolReturn

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