FunctionResponse

@Serializable
class FunctionResponse(val name: String, val arguments: JsonObject?) : ToolFunction

Function invocation emitted by the model inside a ToolCall.

Constructors

Link copied to clipboard
constructor(name: String, arguments: JsonObject?)

Properties

Link copied to clipboard
val arguments: JsonObject?

JSON-encoded arguments produced by the model, matching the schema declared in the corresponding FunctionRequest.parameters.

Link copied to clipboard
open override val name: String

Name of the function the model asked to call.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String