Tool

@Serializable
@SerialName(value = "tool")
data class Tool(val content: OpenAIChatCompletionContent, val toolCallId: String, val name: String? = null) : OpenAIMessageParam

A tool result message.

Constructors

Link copied to clipboard
constructor(content: OpenAIChatCompletionContent, toolCallId: String, name: String? = null)

Properties

Link copied to clipboard

The tool execution result.

Link copied to clipboard
val name: String?

Optional tool name.

Link copied to clipboard
@SerialName(value = "tool_call_id")
val toolCallId: String

The ID of the tool call this result responds to.