using System.Text.Json.Serialization; using AIStudio.Provider.OpenAI; namespace AIStudio.Provider.Anthropic; /// /// The Anthropic chat request model. /// /// Which model to use for chat completion. /// The chat messages. /// The maximum number of tokens to generate. /// Whether to stream the chat completion. /// The system prompt for the chat completion. public readonly record struct ChatRequest( string Model, IList Messages, int MaxTokens, bool Stream, string System ) { // Attention: The "required" modifier is not supported for [JsonExtensionData]. [JsonExtensionData] public IDictionary AdditionalApiParameters { get; init; } = new Dictionary(); }