Skip to content

Tool Call Execution Problem with Structured Output #1012

Open
@AbdulHaseeb434000

Description

@AbdulHaseeb434000

During the execution of agent with and without output_type parameter, I found this issue multiple times.
Without output_type specified, the agent executes tools accurately. However, when agent is restricted to structured output, it jumps to the answer and bypasses the tools execution. After multiple efforts, I found out that the behaviour still remained the same even when tool_use was changed to required in model_settings and mentioned clearly in instructions to use the tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions