Documentation
Table of Contents

Method UseAnthropic

Namespace
IntentSharp
Assembly
IntentSharp.dll

UseAnthropic(string, string?)

Uses Anthropic as the primary provider, named "Anthropic". Calling it again replaces the primary.

public IntentClientBuilder UseAnthropic(string apiKey, string? model = null)

Parameters

apiKey string
model string

Returns

IntentClientBuilder

Exceptions

ArgumentException

The fallback provider is already named "Anthropic" (for example after UseAnthropicAsFallback(string, string?)). Nothing is created.