PartialArg

@Serializable
data class PartialArg(val boolValue: Boolean? = null, val jsonPath: String? = null, val nullValue: NullValue? = null, val numberValue: Double? = null, val stringValue: String? = null, val willContinue: Boolean? = null)

Partial argument value of the function call. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(boolValue: Boolean? = null, jsonPath: String? = null, nullValue: NullValue? = null, numberValue: Double? = null, stringValue: String? = null, willContinue: Boolean? = null)

Properties

Link copied to clipboard
val boolValue: Boolean? = null

Optional. Represents a boolean value.

Link copied to clipboard
val jsonPath: String? = null

Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar0.data".

Link copied to clipboard
val nullValue: NullValue? = null

Optional. Represents a null value.

Link copied to clipboard
val numberValue: Double? = null

Optional. Represents a double value.

Link copied to clipboard
val stringValue: String? = null

Optional. Represents a string value.

Link copied to clipboard
val willContinue: Boolean? = null

Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.