Class MessageResponse
- Namespace
- AnthropicClient.Models
- Assembly
- AnthropicClient.dll
Represents a response.
public class MessageResponse
- Inheritance
-
MessageResponse
- Inherited Members
Properties
Content
Gets the contents of the response.
public List<Content> Content { get; init; }
Property Value
Id
Gets the ID of the response.
public string Id { get; init; }
Property Value
Model
Gets the model used for the response.
public string Model { get; init; }
Property Value
Role
Gets the role of the response.
public string Role { get; init; }
Property Value
StopReason
Gets the stop reason of the response.
[JsonPropertyName("stop_reason")]
public string? StopReason { get; init; }
Property Value
StopSequence
Gets the stop sequence of the response.
[JsonPropertyName("stop_sequence")]
public string? StopSequence { get; init; }
Property Value
ToolCall
Gets the tool call of the response. If the response does not contain a tool call, this property is null.
[JsonIgnore]
public ToolCall? ToolCall { get; set; }
Property Value
Type
Gets the type of the response.
public string Type { get; init; }
Property Value
Usage
Gets the usage of the response.
public Usage Usage { get; init; }