Call

data class Call(val id: String?, val tool: String, val content: String, val metaInfo: ResponseMetaInfo) : 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, metaInfo: ResponseMetaInfo)

Properties

Link copied to clipboard
open override val content: String

The content of the tool call.

Link copied to clipboard

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 metaInfo: ResponseMetaInfo

Metadata related to the response, including token counts and timestamp.

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.