ToolResponse

data class ToolResponse(val id: String? = null, val toolType: ToolType? = null, val response: Map<String, Any?>? = null)

The output of a server-side ToolCall the model ran itself.

Echoed back on the next request alongside its ToolCall, or the model redoes the work it already did, or fails because a call has no matching response.

Constructors

Link copied to clipboard
constructor(id: String? = null, toolType: ToolType? = null, response: Map<String, Any?>? = null)

Properties

Link copied to clipboard
val id: String?

The identifier of the ToolCall this response is for.

Link copied to clipboard

The tool response.

Link copied to clipboard

The type of tool that was called.