Skip to content

Missing Tool Result Block in API Request Handling #1887

@slyfox1186

Description

@slyfox1186

Bug Description
● Search(pattern: "limit.*50|limit.*49|CONTACTS_PER_PAGE", path: "src/frontend")
⎿  Found 8 files (ctrl+r to expand)
⎿  Interrupted by user
⎿  Interrupted by user
⎿  Interrupted by user

becauyse of pagination
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.81: tool_use ids were found without tool_result blocks immediately after: toolu_01Vy9qS5ecmJ9hBoCqoN2H9Z.
Each tool_use block must have a corresponding tool_result block in the next message."}}

becauyse of pagination
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.81: tool_use ids were found without tool_result blocks immediately after: toolu_01Vy9qS5ecmJ9hBoCqoN2H9Z.
Each tool_use block must have a corresponding tool_result block in the next message."}}

Environment Info

  • Platform: linux
  • Terminal: vte-based
  • Version: 1.0.17
  • Feedback ID: ce38c274-1072-42a6-a13d-049466160d7a

Errors

[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions