diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
index 05aecd5f..6b2fd52d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -452,47 +452,47 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
///
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Required. The user-defined name of this batch.
///
///
/// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// Stats about the batch.
///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? model = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
string? priority = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
- Model = model,
- InputConfig = inputConfig,
- Output = output,
DisplayName = displayName,
+ Output = output,
BatchStats = batchStats,
+ InputConfig = inputConfig,
Priority = priority,
+ Model = model,
};
return await BatchesUpdateEmbedContentBatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
index a68edaac..1e6bf37f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
@@ -455,20 +455,20 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Stats about the batch.
///
- ///
- /// Required. The user-defined name of this batch.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Required. The user-defined name of this batch.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -477,22 +477,22 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
string batchesId,
string? updateMask = default,
string? priority = default,
+ global::Google.Gemini.InputConfig? inputConfig = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? displayName = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
- global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
+ string? displayName = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentBatch
{
Priority = priority,
+ InputConfig = inputConfig,
BatchStats = batchStats,
- DisplayName = displayName,
- Output = output,
Model = model,
- InputConfig = inputConfig,
+ Output = output,
+ DisplayName = displayName,
};
return await BatchesUpdateGenerateContentBatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
index 34d7ab99..187ba1a6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
@@ -429,60 +429,60 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Creates CachedContent resource.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Input only. Immutable. The content to cache.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Optional. Input only. Immutable. The content to cache.
+ ///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? ttl = default,
+ string? displayName = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Collections.Generic.IList? tools = default,
- string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? expireTime = default,
+ string? ttl = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- string? displayName = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Ttl = ttl,
+ DisplayName = displayName,
+ UsageMetadata = usageMetadata,
Tools = tools,
- Model = model,
SystemInstruction = systemInstruction,
- Contents = contents,
ExpireTime = expireTime,
+ Ttl = ttl,
+ Contents = contents,
ToolConfig = toolConfig,
- DisplayName = displayName,
- UsageMetadata = usageMetadata,
+ Model = model,
};
return await CachedContentsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
index d60ec1df..207fbe8f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
@@ -452,32 +452,32 @@ partial void ProcessCachedContentsPatchResponseContent(
///
///
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Input only. Immutable. The content to cache.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Optional. Input only. Immutable. The content to cache.
+ ///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -485,29 +485,29 @@ partial void ProcessCachedContentsPatchResponseContent(
public async global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? ttl = default,
+ string? displayName = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Collections.Generic.IList? tools = default,
- string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? expireTime = default,
+ string? ttl = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- string? displayName = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Ttl = ttl,
+ DisplayName = displayName,
+ UsageMetadata = usageMetadata,
Tools = tools,
- Model = model,
SystemInstruction = systemInstruction,
- Contents = contents,
ExpireTime = expireTime,
+ Ttl = ttl,
+ Contents = contents,
ToolConfig = toolConfig,
- DisplayName = displayName,
- UsageMetadata = usageMetadata,
+ Model = model,
};
return await CachedContentsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
index 573143b7..09d821e0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessDynamicGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await DynamicGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
index 82c3754d..2e45da84 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await DynamicStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index 27c9f812..831d806f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
var __enumerable = DynamicStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
index 65037548..22ea3ac6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
@@ -429,25 +429,25 @@ partial void ProcessFileSearchStoresCreateResponseContent(
///
/// Creates an empty `FileSearchStore`.
///
- ///
- /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.
- ///
///
/// Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"
///
+ ///
+ /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresCreateAsync(
- string? embeddingModel = default,
string? displayName = default,
+ string? embeddingModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.FileSearchStore
{
- EmbeddingModel = embeddingModel,
DisplayName = displayName,
+ EmbeddingModel = embeddingModel,
};
return await FileSearchStoresCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
index 0d754df5..5f0bf89e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -442,12 +442,12 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
///
/// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
- ///
- /// Custom metadata to be associated with the data.
- ///
///
/// Optional. Display name of the created document.
///
+ ///
+ /// Custom metadata to be associated with the data.
+ ///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
@@ -457,8 +457,8 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
string? mimeType = default,
- global::System.Collections.Generic.IList? customMetadata = default,
string? displayName = default,
+ global::System.Collections.Generic.IList? customMetadata = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -466,8 +466,8 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest
{
MimeType = mimeType,
- CustomMetadata = customMetadata,
DisplayName = displayName,
+ CustomMetadata = customMetadata,
ChunkingConfig = chunkingConfig,
};
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
index d9ef85ef..7cfc72e8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
@@ -441,31 +441,31 @@ partial void ProcessModelsEmbedContentResponseContent(
/// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).
///
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Configurations for the EmbedContent request.
///
///
/// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`
///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.Content? content = default,
global::Google.Gemini.EmbedContentConfig? embedContentConfig = default,
string? model = default,
+ global::Google.Gemini.Content? content = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentRequest
{
- Content = content,
EmbedContentConfig = embedContentConfig,
Model = model,
+ Content = content,
};
return await ModelsEmbedContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
index d9916683..21dab4e0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await ModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
index 11e5a980..c28857d7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await ModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index ff912dcc..6570561f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
var __enumerable = ModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
index aedb6b71..3c1c3de7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
@@ -454,20 +454,20 @@ partial void ProcessTunedModelsCreateResponseContent(
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -478,11 +478,11 @@ partial void ProcessTunedModelsCreateResponseContent(
int? topK = default,
float? temperature = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
string? displayName = default,
string? baseModel = default,
- float? topP = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -492,11 +492,11 @@ partial void ProcessTunedModelsCreateResponseContent(
TopK = topK,
Temperature = temperature,
TunedModelSource = tunedModelSource,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ TopP = topP,
DisplayName = displayName,
BaseModel = baseModel,
- TopP = topP,
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
};
return await TunedModelsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
index fafc7b8b..125f6dc6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await TunedModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
index 984082a6..903a04da 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
@@ -464,20 +464,20 @@ partial void ProcessTunedModelsPatchResponseContent(
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -489,11 +489,11 @@ partial void ProcessTunedModelsPatchResponseContent(
int? topK = default,
float? temperature = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
string? displayName = default,
string? baseModel = default,
- float? topP = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -503,11 +503,11 @@ partial void ProcessTunedModelsPatchResponseContent(
TopK = topK,
Temperature = temperature,
TunedModelSource = tunedModelSource,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ TopP = topP,
DisplayName = displayName,
BaseModel = baseModel,
- TopP = topP,
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
};
return await TunedModelsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
index 22d1e716..6e04c151 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
return await TunedModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index 37b2ca9e..1b3d9dd0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ ServiceTier = serviceTier,
+ Model = model,
+ Store = store,
+ CachedContent = cachedContent,
+ Contents = contents,
+ ToolConfig = toolConfig,
SafetySettings = safetySettings,
GenerationConfig = generationConfig,
- Tools = tools,
- ToolConfig = toolConfig,
- CachedContent = cachedContent,
SystemInstruction = systemInstruction,
- Contents = contents,
- ServiceTier = serviceTier,
- Store = store,
- Model = model,
+ Tools = tools,
};
var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
index f3a1e847..0fcdcc3e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -41,36 +41,36 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Required. The user-defined name of this batch.
///
///
/// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// Stats about the batch.
///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? model = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
string? priority = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs
index 8d2bc7f3..3c2fcbda 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs
@@ -44,20 +44,20 @@ public partial interface IGeminiClient
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Stats about the batch.
///
- ///
- /// Required. The user-defined name of this batch.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Required. The user-defined name of this batch.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -66,11 +66,11 @@ public partial interface IGeminiClient
string batchesId,
string? updateMask = default,
string? priority = default,
+ global::Google.Gemini.InputConfig? inputConfig = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? displayName = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
- global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
+ string? displayName = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
index 0590c0cc..51e3b5a2 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
@@ -31,46 +31,46 @@ public partial interface IGeminiClient
///
/// Creates CachedContent resource.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Input only. Immutable. The content to cache.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Optional. Input only. Immutable. The content to cache.
+ ///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? ttl = default,
+ string? displayName = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Collections.Generic.IList? tools = default,
- string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? expireTime = default,
+ string? ttl = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- string? displayName = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
index d4818b95..2fd5cb29 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
@@ -41,32 +41,32 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Input only. Immutable. The content to cache.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Optional. Input only. Immutable. The content to cache.
+ ///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -74,15 +74,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? ttl = default,
+ string? displayName = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Collections.Generic.IList? tools = default,
- string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? expireTime = default,
+ string? ttl = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- string? displayName = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
index 49596577..c0b76e6c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
index ff1f7516..30c6643b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index a0a38550..5016f1f9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs
index 456dc9c7..9edab07f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs
@@ -31,18 +31,18 @@ public partial interface IGeminiClient
///
/// Creates an empty `FileSearchStore`.
///
- ///
- /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.
- ///
///
/// Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"
///
+ ///
+ /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresCreateAsync(
- string? embeddingModel = default,
string? displayName = default,
+ string? embeddingModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
index 1f0a12e7..eb56a9b7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -39,12 +39,12 @@ public partial interface IGeminiClient
///
/// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
- ///
- /// Custom metadata to be associated with the data.
- ///
///
/// Optional. Display name of the created document.
///
+ ///
+ /// Custom metadata to be associated with the data.
+ ///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
@@ -54,8 +54,8 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
string? mimeType = default,
- global::System.Collections.Generic.IList? customMetadata = default,
string? displayName = default,
+ global::System.Collections.Generic.IList? customMetadata = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
index a0ce1945..39678846 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
@@ -38,23 +38,23 @@ public partial interface IGeminiClient
/// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).
///
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Configurations for the EmbedContent request.
///
///
/// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`
///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.Content? content = default,
global::Google.Gemini.EmbedContentConfig? embedContentConfig = default,
string? model = default,
+ global::Google.Gemini.Content? content = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
index 7c4f0f2e..1cacbe02 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
index 0182beba..0c6530b4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index 581f294b..16fa7924 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs
index e10758bc..e2fd79a5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs
@@ -48,20 +48,20 @@ public partial interface IGeminiClient
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -72,11 +72,11 @@ public partial interface IGeminiClient
int? topK = default,
float? temperature = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
string? displayName = default,
string? baseModel = default,
- float? topP = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
index a7e1d2a8..f1ab4cd9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
index 60d80dcf..f65fedb9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
@@ -53,20 +53,20 @@ public partial interface IGeminiClient
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -78,11 +78,11 @@ public partial interface IGeminiClient
int? topK = default,
float? temperature = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
string? displayName = default,
string? baseModel = default,
- float? topP = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
index a5d4e5e3..6782231e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index 2878bc5a..79763a2e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. The service tier of the request.
///
- ///
- /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
///
/// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
///
- ///
- /// Optional. The service tier of the request.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. A 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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ string? model = default,
+ bool? store = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- string? cachedContent = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- bool? store = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
index b0bc4f7a..43930412 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
@@ -13,430 +13,430 @@ namespace Google.Gemini
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UnixTimestampJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.JsonSerializerContextTypes))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchGenerateContentRequest))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(float))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigResponseModalitie), TypeInfoPropertyName = "GenerationConfigResponseModalitie2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList