Class LiveClientContextUpdate
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Updates to the context of the current live session. Only fields that are set will be updated. Updates are guaranteed to be processed in order with the rest of the inputs.
public class LiveClientContextUpdate
- Inheritance
-
LiveClientContextUpdate
- Inherited Members
- Extension Methods
Properties
SystemInstruction
Updated system instruction for the model. If set, overrides SystemInstruction. The system instructions are part of the model preamble, so updating them invalidates the prefix cache. Only update this field when strictly necessary as it might have a performance impact on model generation.
[JsonPropertyName("systemInstruction")]
public Content? SystemInstruction { get; set; }
Property Value
Tools
An updated list of tools the model may use to generate 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.
[JsonPropertyName("tools")]
public ContextUpdateTools? Tools { get; set; }