AnthropicPromptResult
Namespace: Vercel.AI.Anthropic
public sealed class AnthropicPromptResultAnthropic system and messages produced from an SDK prompt.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”public IReadOnlyList<string> Betas { get; }Betas required by the prompt.
Value: IReadOnlyList<string>
Messages
Section titled “Messages”public JsonArray Messages { get; }Conversation messages.
Value: JsonArray
System
Section titled “System”public JsonArray? System { get; }Top-level system blocks. Null when the prompt has no system text.
Value: JsonArray
Warnings
Section titled “Warnings”public IReadOnlyList<AnthropicWarning> Warnings { get; }Warnings produced while converting.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product