Call

data class Call @JvmOverloads constructor(val id: String? = null, val tool: String, val args: String) : MessagePart.Tool, MessagePart.ResponsePart(source)

Represents a tool call message sent as a response.

Constructors

Link copied to clipboard
constructor(id: String? = null, tool: String, args: String)
constructor(id: String? = null, tool: String, args: JsonObject)

Convenience constructor that accepts a JsonObject and serialises it to args.

Properties

Link copied to clipboard

The JSON-encoded arguments for the tool call.

Link copied to clipboard

Lazily parsed JsonObject view of args.

Link copied to clipboard
val id: String?

The unique identifier of the tool call.

Link copied to clipboard
open override val tool: String

The name of the tool being called.