Skip to content

Input format in agent as tool #655

Open
@HGF1KOR

Description

@HGF1KOR

Please read this first

  • Have you read the docs?Agents SDK docs :yes
  • Have you searched for related issues? Others may have had similar requests:Yes

Question

Does this library support setting up input formats for inputs to an agent.as_tool? When we rely only on the prompt to define what should be passed to the agent, it's not consistent and sometimes fails. In a typical tool call, I believe the arguments and type hints are parsed, and a Pydantic BaseModel is created, which then gets converted to a JSON schema—so the system understands what input is expected. Don't we have a similar option to define the input description and input schema when using an agent as a tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions