Skip to main content
Use AnthropicProvider to connect Corsair to the Anthropic SDK via native tool use.

Install

Usage

agent.ts
AnthropicProvider.build() is synchronous — it returns the tools array directly, ready to pass to any Anthropic API call. toolRunner handles the tool call loop automatically, invoking each tool and feeding results back until the model produces a final response.