OptionalabortAbort 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.
OptionalcontextConfigures context window compression mechanism.
If included, server will compress context window to fit into given length.
OptionalenableIf enabled, the model will detect emotions and adapt its responses accordingly.
OptionalgenerationThe generation configuration for the session.
OptionalhttpUsed to override HTTP request options.
OptionalinputThe transcription of the input aligns with the input audio language.
OptionalmaxMaximum number of tokens that can be generated in the response.
OptionalmediaIf specified, the media resolution specified will be used.
OptionaloutputThe transcription of the output aligns with the language code specified for the output audio.
OptionalproactivityConfigures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
OptionalrealtimeConfigures the realtime input behavior in BidiGenerateContent.
OptionalresponseThe requested modalities of the response. Represents the set of modalities that the model can return. Defaults to AUDIO if not specified.
OptionalseedWhen 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.
OptionalsessionConfigures session resumption mechanism.
If included the server will send SessionResumptionUpdate messages.
OptionalspeechThe speech generation configuration.
OptionalsystemThe 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.
OptionaltemperatureValue 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.
OptionalthinkingConfig for thinking features. An error will be returned if this field is set for models that don't support thinking.
OptionaltoolsA 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.
OptionaltopKFor 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.
OptionaltopPTokens 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.