Skip to content

Agent Response format not working #4180

Description

@mayurcdposition2

Have added response format for agent, but getting content as a string.
This is happening when I add a tools inside the agent.

Image

surging-edge (2).json

Activity

  1. waleedlatif1 commented on Apr 15, 2026

    @waleedlatif1
    Collaborator

    @mayurcdposition2 gemini models are a bit finnicky, #4184 resolves this by pulling out the model and identifying whcih models support tool calls + response format (gemini 3+) and keeps the same safeguard for gemini 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions