Skip to content

AnthropicPromptResult

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicPromptResult

Anthropic system and messages produced from an SDK prompt.

Inheritance: object

View source

AnthropicPromptResult(JsonArray?, JsonArray, IReadOnlyList<string>, IReadOnlyList<AnthropicWarning>)

Section titled “AnthropicPromptResult(JsonArray?, JsonArray, IReadOnlyList<string>, IReadOnlyList<AnthropicWarning>)”
public AnthropicPromptResult(JsonArray? system, JsonArray messages, IReadOnlyList<string> betas, IReadOnlyList<AnthropicWarning> warnings)

Creates a converted prompt.

Parameters

Name Type Description
system JsonArray
messages JsonArray
betas IReadOnlyList<string>
warnings IReadOnlyList<AnthropicWarning>

View source

public IReadOnlyList<string> Betas { get; }

Betas required by the prompt.

Value: IReadOnlyList<string>

View source

public JsonArray Messages { get; }

Conversation messages.

Value: JsonArray

View source

public JsonArray? System { get; }

Top-level system blocks. Null when the prompt has no system text.

Value: JsonArray

View source

public IReadOnlyList<AnthropicWarning> Warnings { get; }

Warnings produced while converting.

Value: IReadOnlyList<AnthropicWarning>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product