Skip to content

Support for recurring tool calls #29

Closed

Description

@pyaf

Should we provide available tools to the model during recurring anthropic.messges.create calls?

response = self.anthropic.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1000,
messages=messages,

Activity

  1. a-akimov commented on Oct 14, 2026

    @a-akimov
    Contributor

    Thanks for flagging this! It's been fixed in #141: the client now passes tools on every follow-up messages.create call and loops across turns (up to MAX_TOOL_TURNS), so the model can chain tool calls. All the other language clients follow the same pattern, and it's covered by the tool-loop smoke tests. Closing as resolved.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions