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 a68b114..e6ce129 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The user-defined name of this batch.
///
///
/// Stats about the 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.
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
/// The token to cancel the operation with
///
@@ -215,21 +215,21 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
string batchesId,
string? updateMask = default,
string? model = default,
- string? displayName = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
string? priority = default,
+ string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
Model = model,
- DisplayName = displayName,
InputConfig = inputConfig,
- Output = output,
- BatchStats = batchStats,
Priority = priority,
+ DisplayName = displayName,
+ BatchStats = batchStats,
+ Output = output,
};
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 88b9fee..a318b76 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,9 +194,6 @@ 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.
///
@@ -206,6 +203,9 @@ 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 631a32d..e665842 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.
///
- ///
- /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// 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.
///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
+ /// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? expireTime = default,
- string? ttl = default,
- string? displayName = 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,
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
{
- ExpireTime = expireTime,
- Ttl = ttl,
- DisplayName = displayName,
Model = model,
+ ToolConfig = toolConfig,
+ ExpireTime = expireTime,
+ UsageMetadata = usageMetadata,
SystemInstruction = systemInstruction,
Contents = contents,
+ Ttl = ttl,
+ DisplayName = displayName,
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 efe9036..b56fb49 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(
///
///
///
- ///
- /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// 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.
///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
+ /// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? expireTime = default,
- string? ttl = default,
- string? displayName = 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,
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
{
- ExpireTime = expireTime,
- Ttl = ttl,
- DisplayName = displayName,
Model = model,
+ ToolConfig = toolConfig,
+ ExpireTime = expireTime,
+ UsageMetadata = usageMetadata,
SystemInstruction = systemInstruction,
Contents = contents,
+ Ttl = ttl,
+ DisplayName = displayName,
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 0975c4f..52be501 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.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- EmailAddress = emailAddress,
Role = role,
+ EmailAddress = emailAddress,
+ GranteeType = granteeType,
};
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 9b4ff65..26d5a2a 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(
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
@@ -213,16 +213,16 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
string permissionsId,
string corporaId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- EmailAddress = emailAddress,
Role = role,
+ EmailAddress = emailAddress,
+ GranteeType = granteeType,
};
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 45a8bc0..84a019d 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 b8338c2..b113955 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 4f6d2f6..26f5a84 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 385b9d3..5d3cc8a 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 e8076ee..5266f62 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).
///
///
- ///
- /// 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. 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 base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`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}`
///
///
/// 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,
- string? model = default,
- global::Google.Gemini.Content? content = default,
global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
- string? title = default,
int? outputDimensionality = default,
+ global::Google.Gemini.Content? content = default,
+ string? model = default,
+ string? title = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentRequest
{
- Model = model,
- Content = content,
TaskType = taskType,
- Title = title,
OutputDimensionality = outputDimensionality,
+ Content = content,
+ Model = model,
+ Title = title,
};
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 25d5948..b085c90 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 d63d162..f653b95 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 b377958..4678492 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 156515b..4c5b511 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.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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. A short description of this model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
///
/// 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.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. 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.
///
- ///
- /// Tuning tasks that create tuned models.
- ///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
/// 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,
- float? topP = default,
- int? topK = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ int? topK = default,
+ string? displayName = 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,
- TopP = topP,
- TopK = topK,
TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
+ TopK = topK,
+ DisplayName = displayName,
};
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 b6a15b9..0f404cf 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 dd2575f..8e5cb93 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.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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. A short description of this model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
///
/// 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.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. 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.
///
- ///
- /// Tuning tasks that create tuned models.
- ///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
/// 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,
- float? topP = default,
- int? topK = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ int? topK = default,
+ string? displayName = 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,
- TopP = topP,
- TopK = topK,
TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
+ TopK = topK,
+ DisplayName = displayName,
};
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 02a3d4d..e0e80e9 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.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- EmailAddress = emailAddress,
Role = role,
+ EmailAddress = emailAddress,
+ GranteeType = granteeType,
};
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 c902c5d..d98c90a 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(
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
@@ -213,16 +213,16 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
string tunedModelsId,
string permissionsId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- EmailAddress = emailAddress,
Role = role,
+ EmailAddress = emailAddress,
+ GranteeType = granteeType,
};
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 ded8a42..4b47410 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 53a0575..b964dd9 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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,
- Tools = tools,
+ GenerationConfig = generationConfig,
+ Model = model,
ToolConfig = toolConfig,
SafetySettings = safetySettings,
- GenerationConfig = generationConfig,
+ Tools = tools,
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 24a328e..7cbb307 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The user-defined name of this batch.
///
///
/// Stats about the 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.
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
/// The token to cancel the operation with
///
@@ -47,11 +47,11 @@ public partial interface IGeminiClient
string batchesId,
string? updateMask = default,
string? model = default,
- string? displayName = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
string? priority = default,
+ string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = 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 46b0885..eb02d18 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,9 +26,6 @@ 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.
///
@@ -38,6 +35,9 @@ 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 d33dde7..b73ab13 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.
///
- ///
- /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// 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.
///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
+ /// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- string? expireTime = default,
- string? ttl = default,
- string? displayName = 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,
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 e6a8520..12ad9e2 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
///
///
///
- ///
- /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Metadata on the usage of the cached content.
///
///
/// 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.
///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
+ /// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
///
- ///
- /// Metadata on the usage of the cached content.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? expireTime = default,
- string? ttl = default,
- string? displayName = 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,
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 62b10a3..d8aafd6 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.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = 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 275fc39..2a2676d 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
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// 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.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = 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 6203186..fcc2f95 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 22a7d0f..558481b 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 dad4cf4..f96acfd 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 ab6a733..16ecb6d 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 d88d19b..1b4eac0 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).
///
///
- ///
- /// 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. 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 base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
- ///
- /// Optional. Optional task type for which the embeddings will be used. Not supported on earlier models (`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}`
///
///
/// 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,
- string? model = default,
- global::Google.Gemini.Content? content = default,
global::Google.Gemini.EmbedContentRequestTaskType? taskType = default,
- string? title = default,
int? outputDimensionality = default,
+ global::Google.Gemini.Content? content = default,
+ string? model = default,
+ string? title = 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 f0a01cb..e306074 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 c044f9c..c9b7d55 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 9f170bd..f845dcd 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 2a12f11..f741981 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.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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. A short description of this model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
///
/// 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.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. 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.
///
- ///
- /// Tuning tasks that create tuned models.
- ///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
/// 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,
- float? topP = default,
- int? topK = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ int? topK = default,
+ string? displayName = 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 7ee3514..da22171 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 67afb20..19ba12c 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.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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. A short description of this model.
+ ///
+ /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
///
///
/// 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.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// Optional. 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.
///
- ///
- /// Tuning tasks that create tuned models.
- ///
- ///
- /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
/// 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,
- float? topP = default,
- int? topK = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ int? topK = default,
+ string? displayName = 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 f5f9133..56415b4 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.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = 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 f4a3ab6..40dd715 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
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Required. The role granted by this permission.
///
///
/// 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.
///
- ///
- /// Required. The role granted by this permission.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// 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.PermissionGranteeType? granteeType = default,
- string? emailAddress = default,
global::Google.Gemini.PermissionRole? role = default,
+ string? emailAddress = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = 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 c339769..b29c654 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 b7f13ad..7d1dc8f 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
@@ -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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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.
///
///
/// 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::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? tools = default,
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 a7fdf45..a9b6811 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.GenerateContentRequestServiceTierJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
- 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.UrlMetadataUrlRetrievalStatusJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
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.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.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(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(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(int))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList