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 e6ce129..a68b114 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
@@ -194,20 +194,20 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Required. The user-defined name of this 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 user-defined name of this batch.
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
///
/// Stats about the batch.
///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// 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.
///
/// The token to cancel the operation with
///
@@ -215,21 +215,21 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
string batchesId,
string? updateMask = default,
string? model = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- string? priority = default,
string? displayName = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ string? priority = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
Model = model,
- InputConfig = inputConfig,
- Priority = priority,
DisplayName = displayName,
- BatchStats = batchStats,
+ InputConfig = inputConfig,
Output = output,
+ BatchStats = batchStats,
+ Priority = priority,
};
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 a318b76..88b9fee 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
@@ -194,6 +194,9 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
///
/// Configures the input to the batch request.
///
@@ -203,9 +206,6 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
///
/// Stats about the batch.
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// 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.
///
@@ -215,20 +215,20 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
string batchesId,
string? updateMask = default,
string? model = default,
+ string? displayName = default,
global::Google.Gemini.InputConfig? inputConfig = default,
global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? displayName = default,
string? priority = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentBatch
{
Model = model,
+ DisplayName = displayName,
InputConfig = inputConfig,
Output = output,
BatchStats = batchStats,
- DisplayName = displayName,
Priority = priority,
};
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 e665842..631a32d 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
@@ -174,17 +174,17 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Creates CachedContent resource.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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.
@@ -192,40 +192,40 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// 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.
- ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? model = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? expireTime = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? ttl = default,
string? displayName = default,
+ string? model = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Model = model,
- ToolConfig = toolConfig,
ExpireTime = expireTime,
- UsageMetadata = usageMetadata,
- SystemInstruction = systemInstruction,
- Contents = contents,
Ttl = ttl,
DisplayName = displayName,
+ Model = model,
+ SystemInstruction = systemInstruction,
+ Contents = contents,
Tools = tools,
+ ToolConfig = toolConfig,
+ UsageMetadata = usageMetadata,
};
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 b56fb49..efe9036 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
@@ -191,17 +191,17 @@ partial void ProcessCachedContentsPatchResponseContent(
///
///
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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.
@@ -209,42 +209,42 @@ partial void ProcessCachedContentsPatchResponseContent(
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// 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.
- ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? model = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? expireTime = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? ttl = default,
string? displayName = default,
+ string? model = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Model = model,
- ToolConfig = toolConfig,
ExpireTime = expireTime,
- UsageMetadata = usageMetadata,
- SystemInstruction = systemInstruction,
- Contents = contents,
Ttl = ttl,
DisplayName = displayName,
+ Model = model,
+ SystemInstruction = systemInstruction,
+ Contents = contents,
Tools = tools,
+ ToolConfig = toolConfig,
+ UsageMetadata = usageMetadata,
};
return await CachedContentsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
index 52be501..0975c4f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
@@ -181,29 +181,29 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- Role = role,
- EmailAddress = emailAddress,
GranteeType = granteeType,
+ EmailAddress = emailAddress,
+ Role = role,
};
return await CorporaPermissionsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
index 26d5a2a..9b4ff65 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
@@ -198,14 +198,14 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
///
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
@@ -213,16 +213,16 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
string permissionsId,
string corporaId,
string? updateMask = default,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- Role = role,
- EmailAddress = emailAddress,
GranteeType = granteeType,
+ EmailAddress = emailAddress,
+ Role = role,
};
return await CorporaPermissionsPatchAsync(
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 84a019d..45a8bc0 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
@@ -181,17 +181,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessDynamicGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessDynamicGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessDynamicGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 b113955..b8338c2 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
@@ -181,17 +181,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 26f5a84..4f6d2f6 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
@@ -153,17 +153,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -171,8 +171,8 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -187,13 +187,13 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
///
public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -201,13 +201,13 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
index 5d3cc8a..385b9d3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
@@ -181,29 +181,29 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
/// Imports a `File` from File Service to a `FileSearchStore`.
///
///
+ ///
+ /// Required. The name of the `File` to import. Example: `files/abc-123`
+ ///
///
/// Custom metadata to be associated with the file.
///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
- ///
- /// Required. The name of the `File` to import. Example: `files/abc-123`
- ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync(
string fileSearchStoresId,
+ string? fileName = default,
global::System.Collections.Generic.IList? customMetadata = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
- string? fileName = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.ImportFileRequest
{
+ FileName = fileName,
CustomMetadata = customMetadata,
ChunkingConfig = chunkingConfig,
- FileName = fileName,
};
return await FileSearchStoresImportFileAsync(
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 5266f62..e8076ee 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
@@ -181,39 +181,39 @@ 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).
///
///
- ///
- /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).
- ///
- ///
- /// Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).
+ ///
+ /// 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.
///
- ///
- /// 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}`
+ ///
+ /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).
///
///
/// Optional. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.
///
+ ///
+ /// Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
- int? outputDimensionality = default,
- global::Google.Gemini.Content? content = default,
string? model = default,
+ global::Google.Gemini.Content? content = default,
+ global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
string? title = default,
+ int? outputDimensionality = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentRequest
{
- TaskType = taskType,
- OutputDimensionality = outputDimensionality,
- Content = content,
Model = model,
+ Content = content,
+ TaskType = taskType,
Title = title,
+ OutputDimensionality = outputDimensionality,
};
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 b085c90..25d5948 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
@@ -181,17 +181,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessModelsGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessModelsGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessModelsGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 f653b95..d63d162 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
@@ -181,17 +181,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 4678492..b377958 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
@@ -153,17 +153,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -171,8 +171,8 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -187,13 +187,13 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
///
public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -201,13 +201,13 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 4c5b511..156515b 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
@@ -184,59 +184,59 @@ partial void ProcessTunedModelsCreateResponseContent(
/// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222
///
///
- ///
- /// Optional. A short description of this model.
- ///
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
- ///
- ///
- /// 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.
- ///
///
/// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// Optional. A short description of this model.
+ ///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// 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.
///
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsCreateAsync(
string? tunedModelId = default,
- string? description = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? baseModel = default,
+ string? displayName = default,
+ string? description = default,
float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
int? topK = default,
- string? displayName = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- Description = description,
TunedModelSource = tunedModelSource,
- ReaderProjectNumbers = readerProjectNumbers,
- TopP = topP,
BaseModel = baseModel,
+ DisplayName = displayName,
+ Description = description,
Temperature = temperature,
- TuningTask = tuningTask,
+ TopP = topP,
TopK = topK,
- DisplayName = displayName,
+ 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 0f404cf..b6a15b9 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
@@ -181,17 +181,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 8e5cb93..dd2575f 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
@@ -191,60 +191,60 @@ partial void ProcessTunedModelsPatchResponseContent(
///
///
///
- ///
- /// Optional. A short description of this model.
- ///
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
- ///
- ///
- /// 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.
- ///
///
/// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// Optional. A short description of this model.
+ ///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// 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.
///
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- string? description = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? baseModel = default,
+ string? displayName = default,
+ string? description = default,
float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
int? topK = default,
- string? displayName = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- Description = description,
TunedModelSource = tunedModelSource,
- ReaderProjectNumbers = readerProjectNumbers,
- TopP = topP,
BaseModel = baseModel,
+ DisplayName = displayName,
+ Description = description,
Temperature = temperature,
- TuningTask = tuningTask,
+ TopP = topP,
TopK = topK,
- DisplayName = displayName,
+ TuningTask = tuningTask,
+ ReaderProjectNumbers = readerProjectNumbers,
};
return await TunedModelsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
index e0e80e9..02a3d4d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
@@ -181,29 +181,29 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- Role = role,
- EmailAddress = emailAddress,
GranteeType = granteeType,
+ EmailAddress = emailAddress,
+ Role = role,
};
return await TunedModelsPermissionsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
index d98c90a..c902c5d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
@@ -198,14 +198,14 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
///
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
@@ -213,16 +213,16 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
string tunedModelsId,
string permissionsId,
string? updateMask = default,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- Role = role,
- EmailAddress = emailAddress,
GranteeType = granteeType,
+ EmailAddress = emailAddress,
+ Role = role,
};
return await TunedModelsPermissionsPatchAsync(
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 4b47410..ded8a42 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
@@ -181,17 +181,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -199,8 +199,8 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -215,13 +215,13 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
///
public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -229,13 +229,13 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 b964dd9..53a0575 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
@@ -153,17 +153,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -171,8 +171,8 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -187,13 +187,13 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
///
public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
@@ -201,13 +201,13 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
+ Model = model,
SystemInstruction = systemInstruction,
Contents = contents,
- GenerationConfig = generationConfig,
- Model = model,
+ Tools = tools,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- Tools = tools,
+ GenerationConfig = generationConfig,
CachedContent = cachedContent,
ServiceTier = serviceTier,
Store = store,
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 7cbb307..24a328e 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
@@ -26,20 +26,20 @@ public partial interface IGeminiClient
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Required. The user-defined name of this 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 user-defined name of this batch.
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
///
/// Stats about the batch.
///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// 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.
///
/// The token to cancel the operation with
///
@@ -47,11 +47,11 @@ public partial interface IGeminiClient
string batchesId,
string? updateMask = default,
string? model = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- string? priority = default,
string? displayName = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ string? priority = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 eb02d18..46b0885 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
@@ -26,6 +26,9 @@ public partial interface IGeminiClient
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
///
/// Configures the input to the batch request.
///
@@ -35,9 +38,6 @@ public partial interface IGeminiClient
///
/// Stats about the batch.
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// 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.
///
@@ -47,10 +47,10 @@ public partial interface IGeminiClient
string batchesId,
string? updateMask = default,
string? model = default,
+ string? displayName = default,
global::Google.Gemini.InputConfig? inputConfig = default,
global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? displayName = default,
string? priority = 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 b73ab13..d33dde7 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
@@ -17,17 +17,17 @@ public partial interface IGeminiClient
///
/// Creates CachedContent resource.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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.
@@ -35,27 +35,27 @@ public partial interface IGeminiClient
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// 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.
- ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? model = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? expireTime = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? ttl = default,
string? displayName = default,
+ string? model = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 12ad9e2..e6a8520 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
@@ -23,17 +23,17 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// 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.
+ ///
+ ///
+ /// 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.
@@ -41,29 +41,29 @@ public partial interface IGeminiClient
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// 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.
- ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? model = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? expireTime = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? contents = default,
string? ttl = default,
string? displayName = default,
+ string? model = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs
index d8aafd6..62b10a3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs
@@ -20,22 +20,22 @@ public partial interface IGeminiClient
/// Create a permission to a specific resource.
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs
index 2a2676d..275fc39 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs
@@ -26,14 +26,14 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
@@ -41,9 +41,9 @@ public partial interface IGeminiClient
string permissionsId,
string corporaId,
string? updateMask = default,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 fcc2f95..6203186 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
@@ -20,17 +20,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 558481b..22a7d0f 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 f96acfd..dad4cf4 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
index 16ecb6d..ab6a733 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
@@ -20,22 +20,22 @@ public partial interface IGeminiClient
/// Imports a `File` from File Service to a `FileSearchStore`.
///
///
+ ///
+ /// Required. The name of the `File` to import. Example: `files/abc-123`
+ ///
///
/// Custom metadata to be associated with the file.
///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
- ///
- /// Required. The name of the `File` to import. Example: `files/abc-123`
- ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync(
string fileSearchStoresId,
+ string? fileName = default,
global::System.Collections.Generic.IList? customMetadata = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
- string? fileName = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 1b4eac0..d88d19b 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
@@ -20,30 +20,30 @@ 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).
///
///
- ///
- /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).
- ///
- ///
- /// Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).
+ ///
+ /// 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.
///
- ///
- /// 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}`
+ ///
+ /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).
///
///
/// Optional. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.
///
+ ///
+ /// Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
- int? outputDimensionality = default,
- global::Google.Gemini.Content? content = default,
string? model = default,
+ global::Google.Gemini.Content? content = default,
+ global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
string? title = default,
+ int? outputDimensionality = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 e306074..f0a01cb 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
@@ -20,17 +20,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 c9b7d55..c044f9c 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 f845dcd..9f170bd 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 f741981..2a12f11 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
@@ -20,46 +20,46 @@ public partial interface IGeminiClient
/// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222
///
///
- ///
- /// Optional. A short description of this model.
- ///
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
- ///
- ///
- /// 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.
- ///
///
/// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// Optional. A short description of this model.
+ ///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// 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.
///
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsCreateAsync(
string? tunedModelId = default,
- string? description = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? baseModel = default,
+ string? displayName = default,
+ string? description = default,
float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
int? topK = default,
- string? displayName = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 da22171..7ee3514 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
@@ -20,17 +20,17 @@ 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.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 19ba12c..67afb20 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
@@ -23,47 +23,47 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Optional. A short description of this model.
- ///
///
/// Tuned model as a source for training a new model.
///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
- ///
- ///
- /// 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.
- ///
///
/// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// Optional. A short description of this model.
+ ///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// 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.
///
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- string? description = default,
global::Google.Gemini.TunedModelSource? tunedModelSource = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? baseModel = default,
+ string? displayName = default,
+ string? description = default,
float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
+ float? topP = default,
int? topK = default,
- string? displayName = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs
index 56415b4..f5f9133 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs
@@ -20,22 +20,22 @@ public partial interface IGeminiClient
/// Create a permission to a specific resource.
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs
index 40dd715..f4a3ab6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs
@@ -26,14 +26,14 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
/// The token to cancel the operation with
///
@@ -41,9 +41,9 @@ public partial interface IGeminiClient
string tunedModelsId,
string permissionsId,
string? updateMask = default,
- global::Google.Gemini.PermissionRole? role = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
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 b29c654..c339769 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 7d1dc8f..b7f13ad 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
@@ -20,17 +20,17 @@ 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`.
///
///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. 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.
///
///
/// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// 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.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
///
/// 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.
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
///
/// 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}`
@@ -54,13 +54,13 @@ public partial interface IGeminiClient
///
global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
+ string? model = default,
global::Google.Gemini.Content? systemInstruction = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
string? cachedContent = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = 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 a9b6811..a7fdf45 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
@@ -13,418 +13,418 @@ namespace Google.Gemini
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
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.FunctionResponsePart))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListOperationsResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileRequest))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequest))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequestTaskType), TypeInfoPropertyName = "EmbedContentRequestTaskType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList