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
apiKeystringmodelstring
Returns
Exceptions
- ArgumentException
The fallback provider is already named "Anthropic" (for example after UseAnthropicAsFallback(string, string?)). Nothing is created.