Skip to content

Whats the best way to handle structured output with output_schema with tools using multiple agents #326

Closed

Description

@yrangana

Question

Whats the best way handle structured output with output_schema with tools using multiple agents.

Can a SequentialAgent handle sub_agents to achieve this ?

Activity

  1. sqrrrl commented on Apr 29, 2025

    @sqrrrl
    Member

    Wondering the same thing. Docs say they're not compatible, but doesn't suggest an alternative approach for passing structured data around when tools are present.

  2. added
    documentation[Component] This issue is related to documentation, it will be transferred to adk-docs
    on Apr 29, 2025
  3. yrangana commented on May 14, 2025

    @yrangana
    Author

    related to #84 and #701

  4. BenMawnMahlauNBTC commented on May 14, 2025

    @BenMawnMahlauNBTC

    google models at least support soft schemas for structured data. you can combine this with an after model callback to parse the response. it is hacky but should work most of the time.

  5. locked and limited conversation to collaborators on May 28, 2025
  6. converted this issue into a discussion #975 on May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentation[Component] This issue is related to documentation, it will be transferred to adk-docs

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions