Interface LiveClientContextUpdate

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.

interface LiveClientContextUpdate {
    systemInstruction?: ContentUnion;
    tools?: LiveClientContextUpdateTools;
}

Properties

systemInstruction?: ContentUnion

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.

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.