Skip to content

Stuck on a basic problem #1178

Closed
Closed

Description

@vansh-pundir-rc

I’m currently stuck on a problem.
Let’s say I have two agents:

Agent One generates some text using tools.

Since I can't use structuredOutput with tools, I created another agent specifically for structuredOutput.

However, this second agent can’t be a sub-agent of the first one.
Secondly, I can’t use it as a tool either.
Moreover, I can't run them through a sequentialAgent.

What would be a good workaround for this problem?

Activity

  1. akshatshaw commented on Jun 5, 2025

    @akshatshaw

    why can't you run them as a sequential agent?
    also you can use a after_agent_tool callbacks

  2. added
    question[Component] This issue is asking a question or clarification
    on Jun 5, 2025
  3. locked and limited conversation to collaborators on Jul 13, 2025
  4. converted this issue into a discussion #1937 on Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question[Component] This issue is asking a question or clarification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions