Success

data class Success(val functionCallId: CallId, val value: JsonElement) : FunctionResponse

The function returned value.

value is a JsonElement rather than a nullable Kotlin value because the schema treats an explicit "value": null as a return of null, which is a success — distinct from omitting value, which is malformed.

Constructors

Link copied to clipboard
constructor(functionCallId: CallId, value: JsonElement)

Properties

Link copied to clipboard
open override val functionCallId: CallId

The id of the invocation this responds to.

Link copied to clipboard
val value: JsonElement