Skip to content

BUG: Anthropic API - tool_use ids were found without tool_result blocks #136

@malua

Description

@malua

Hey,

it seems there is an issue with calling the Anthropic API:

2026-02-22T09:32:04.241015Z ERROR handle_message: spacebot::agent::channel: message=channel LLM call failedchannel_id=portal:chat:spacer-1error=CompletionError: ProviderError: Anthropic API error (400 Bad Request): messages.2: tool_use ids were found without tool_result blocks immediately after: toolu_01HDS94VNCHudZHmhBTBRGT7. Each tool_use block must have a corresponding tool_result block in the next message. channel_id=portal:chat:spacer-1agent_id=spacer-1message_id=0b529f03-1df2-428a-8253-d8f3b9071a5e

Thanks for checking it out!

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