AnthropicParseContext
Namespace: Vercel.AI.Anthropic
public sealed class AnthropicParseContextSettings for mapping an Anthropic Messages response onto SDK content.
Inheritance: object
Constructors
Section titled “Constructors”AnthropicParseContext(bool, string, bool, IReadOnlyList<CallWarning>?)
Section titled “AnthropicParseContext(bool, string, bool, IReadOnlyList<CallWarning>?)”public AnthropicParseContext(bool usesJsonResponseTool, string providerOptionsName, bool usedCustomProviderKey, IReadOnlyList<CallWarning>? warnings = null)Creates parse settings.
Parameters
| Name | Type | Description |
|---|---|---|
usesJsonResponseTool |
bool | |
providerOptionsName |
string | |
usedCustomProviderKey |
bool | |
warnings |
IReadOnlyList<CallWarning> |
Properties
Section titled “Properties”GenerateId
Section titled “GenerateId”public Func<string>? GenerateId { get; set; }Id factory for citation sources. Defaults to source-n.
Value: Func<string>
ProviderOptionsName
Section titled “ProviderOptionsName”public string ProviderOptionsName { get; }Provider-options key.
Value: string
ToolNames
Section titled “ToolNames”public Dictionary<string, string> ToolNames { get; }Maps an API tool name back to the caller’s tool name.
Value: Dictionary<string, string>
UsedCustomProviderKey
Section titled “UsedCustomProviderKey”public bool UsedCustomProviderKey { get; }True when a custom provider-options key was present.
Value: bool
UsesJsonResponseTool
Section titled “UsesJsonResponseTool”public bool UsesJsonResponseTool { get; }True when structured output was requested through the json tool.
Value: bool
Warnings
Section titled “Warnings”public IReadOnlyList<CallWarning> Warnings { get; }Warnings from request preparation.
Value: IReadOnlyList<CallWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product