Optional
abortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
Optional
contextConfigures context window compression mechanism.
If included, server will compress context window to fit into given length.
Optional
enableIf enabled, the model will detect emotions and adapt its responses accordingly.
Optional
generationThe generation configuration for the session.
Optional
httpUsed to override HTTP request options.
Optional
inputThe transcription of the input aligns with the input audio language.
Optional
maxMaximum number of tokens that can be generated in the response.
Optional
mediaIf specified, the media resolution specified will be used.
Optional
outputThe transcription of the output aligns with the language code specified for the output audio.
Optional
proactivityConfigures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
Optional
realtimeConfigures the realtime input behavior in BidiGenerateContent.
Optional
responseThe requested modalities of the response. Represents the set of modalities that the model can return. Defaults to AUDIO if not specified.
Optional
seedWhen seed
is fixed to a specific number, the model makes a best
effort to provide the same response for repeated requests. By default, a
random number is used.
Optional
sessionConfigures session resumption mechanism.
If included the server will send SessionResumptionUpdate messages.
Optional
speechThe speech generation configuration.
Optional
systemThe user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
Optional
temperatureValue that controls the degree of randomness in token selection. Lower temperatures are good for prompts that require a less open-ended or creative response, while higher temperatures can lead to more diverse or creative results.
Optional
toolsA list of Tools
the model may use to generate the next response.
A Tool
is a piece of code that enables the system to interact with
external systems to perform an action, or set of actions, outside of
knowledge and scope of the model.
Optional
topKFor each token selection step, the top_k
tokens with the
highest probabilities are sampled. Then tokens are further filtered based
on top_p
with the final token selected using temperature sampling. Use
a lower number for less random responses and a higher number for more
random responses.
Optional
topPTokens are selected from the most to least probable until the sum of their probabilities equals this value. Use a lower value for less random responses and a higher value for more random responses.
Session config for the API connection.