ChatMessage
@Serializable
The messages to generate chat completions for.
Constructors
Link copied to clipboard
constructor(role: ChatRole, content: String? = null, name: String? = null, functionCall: FunctionCall? = null, toolCalls: List<ToolCall>? = null, toolCallId: ToolId? = null, contentFilterResults: List<ContentFilterResults>? = null, contentFilterOffsets: List<ContentFilterOffsets>? = null)
constructor(role: ChatRole, content: List<ContentPart>? = null, name: String? = null, functionCall: FunctionCall? = null, toolCalls: List<ToolCall>? = null, toolCallId: ToolId? = null, contentFilterResults: List<ContentFilterResults>? = null, contentFilterOffsets: List<ContentFilterOffsets>? = null)
constructor(role: ChatRole, messageContent: Content? = null, name: String? = null, functionCall: FunctionCall? = null, toolCalls: List<ToolCall>? = null, toolCallId: ToolId? = null, contentFilterResults: List<ContentFilterResults>? = null, contentFilterOffsets: List<ContentFilterOffsets>? = null)
Properties
Link copied to clipboard
@SerialName(value = "content_filter_offsets")
Azure Content Filter Offsets
Link copied to clipboard
@SerialName(value = "content_filter_results")
Azure Content Filter Results
Link copied to clipboard
The name and arguments of a function that should be called, as generated by the model.
Link copied to clipboard
The contents of the message. This is required for requests, and optional for responses.
Link copied to clipboard
Link copied to clipboard
Tool call ID.