Skip to content

Understanding the use of identifier in BinaryContent #3205

@TuanDTr

Description

@TuanDTr

Question

Context: I want to compare direct reference of the identifier in the prompt, e.g., "This is image idx" vs. adding the identifier in BinaryContent. My use case is basically inputting a list of images and the model returns the results in a structured output, referencing the image identifier in its answers.

From the documentation, it appears that the parameter seems to be exposed only during tool call. In my case, I don't use any specific tools apart from the structured output. Should the parameter identifier not be helpful in this case?

Additional Context

pydantic-ai version 0.2.20
python version 3.12.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions