Call

@Serializable
data class Call(val id: String?, val tool: String, val content: String) : Message.Tool, Message.Response(source)

Represents a tool call message sent as a response.

Constructors

Link copied to clipboard
constructor(id: String?, tool: String, content: String)

Properties

Link copied to clipboard
open override val content: String

The content of the tool call.

Link copied to clipboard
val contentJson: JsonObject

Lazily parses the content of the tool call as a JSON object.

Link copied to clipboard
open override val id: String?

The unique identifier of the tool call.

Link copied to clipboard
open override val role: Message.Role

The role associated with the message.

Link copied to clipboard
open override val tool: String

The name of the tool being called.