LiveClientContextUpdate

@Serializable
data class LiveClientContextUpdate(val systemInstruction: Content? = null, val tools: LiveClientContextUpdateTools? = null)

Updates to the context of the current session.

Only fields that are set will be updated. Updates are guaranteed to be processed in order with the rest of the inputs.

Constructors

Link copied to clipboard
constructor(systemInstruction: Content? = null, tools: LiveClientContextUpdateTools? = null)

Properties

Link copied to clipboard

Updated system instruction for the model. If set, overrides BidiGenerateContentSetup.system_instruction. The system instructions are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.

Link copied to clipboard

An updated list of tools the model may use to generate the subsequent responses. If set, this list replaces the previously provided tools. The tools are part of the model preamble, so updating them invalidates the prefix cache. Clients should only update this field when strictly necessary as it might have a performance impact on the model generation.