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 fd948e2e..a6b9cb96 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -452,8 +452,11 @@ 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.
+ ///
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
///
/// Configures the input to the batch request.
@@ -461,11 +464,8 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
///
/// 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.
- ///
- ///
- /// Required. The user-defined name of this batch.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// Stats about the batch.
@@ -476,22 +476,22 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
public async global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
string? priority = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
- string? displayName = default,
+ string? model = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
- Model = model,
+ DisplayName = displayName,
+ Output = output,
InputConfig = inputConfig,
Priority = priority,
- Output = output,
- DisplayName = displayName,
+ Model = model,
BatchStats = batchStats,
};
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 428ed774..28e01235 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
@@ -452,47 +452,47 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
///
///
///
- ///
- /// 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 `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
+ ///
///
/// Configures the input to the batch request.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? displayName = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? priority = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
+ string? priority = default,
global::Google.Gemini.InputConfig? inputConfig = default,
+ string? displayName = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentBatch
{
- DisplayName = displayName,
BatchStats = batchStats,
- Priority = priority,
- Output = output,
Model = model,
+ Priority = priority,
InputConfig = inputConfig,
+ DisplayName = displayName,
+ Output = output,
};
return await BatchesUpdateGenerateContentBatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
index 5f0724bf..b326317a 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
@@ -429,60 +429,60 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Creates CachedContent resource.
///
- ///
- /// Metadata on the usage of the cached content.
- ///
- ///
- /// 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.
- ///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
- ///
- ///
- /// 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.
+ ///
+ /// Input only. New TTL for this resource, input only.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Input only. New TTL for this resource, input only.
- ///
///
/// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? displayName = default,
- string? expireTime = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? ttl = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
string? model = default,
+ string? expireTime = default,
global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? displayName = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- UsageMetadata = usageMetadata,
- DisplayName = displayName,
- ExpireTime = expireTime,
- Tools = tools,
- SystemInstruction = systemInstruction,
- ToolConfig = toolConfig,
Ttl = ttl,
+ ToolConfig = toolConfig,
Model = model,
+ ExpireTime = expireTime,
Contents = contents,
+ UsageMetadata = usageMetadata,
+ DisplayName = displayName,
+ SystemInstruction = systemInstruction,
+ Tools = tools,
};
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 88e0fd64..20f54e6c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
@@ -452,62 +452,62 @@ partial void ProcessCachedContentsPatchResponseContent(
///
///
///
- ///
- /// Metadata on the usage of the cached content.
- ///
- ///
- /// 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.
- ///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
- ///
- ///
- /// 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.
+ ///
+ /// Input only. New TTL for this resource, input only.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Input only. New TTL for this resource, input only.
- ///
///
/// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? displayName = default,
- string? expireTime = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? ttl = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
string? model = default,
+ string? expireTime = default,
global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? displayName = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- UsageMetadata = usageMetadata,
- DisplayName = displayName,
- ExpireTime = expireTime,
- Tools = tools,
- SystemInstruction = systemInstruction,
- ToolConfig = toolConfig,
Ttl = ttl,
+ ToolConfig = toolConfig,
Model = model,
+ ExpireTime = expireTime,
Contents = contents,
+ UsageMetadata = usageMetadata,
+ DisplayName = displayName,
+ SystemInstruction = systemInstruction,
+ Tools = tools,
};
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 2dcaca89..79e51428 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
@@ -439,31 +439,31 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- Role = role,
EmailAddress = emailAddress,
+ Role = role,
+ 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 8692ec1e..031cb705 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
@@ -462,14 +462,14 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -478,17 +478,17 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
string permissionsId,
string corporaId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- Role = role,
EmailAddress = emailAddress,
+ Role = role,
+ 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 ac8be210..031c075e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessDynamicGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await DynamicGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
index 84340238..618c3343 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await DynamicStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index c9789c1e..c7abf1df 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
var __enumerable = DynamicStreamGenerateContentAsStreamAsync(
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 409f1a98..095fe828 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
@@ -442,28 +442,28 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
///
/// 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`
///
+ ///
+ /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync(
string fileSearchStoresId,
global::System.Collections.Generic.IList? customMetadata = default,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? fileName = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.ImportFileRequest
{
CustomMetadata = customMetadata,
- ChunkingConfig = chunkingConfig,
FileName = fileName,
+ ChunkingConfig = chunkingConfig,
};
return await FileSearchStoresImportFileAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
index e3564cb1..edbdefce 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -442,14 +442,14 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
///
/// Optional. Display name of the created document.
///
- ///
- /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
+ ///
+ /// Custom metadata to be associated with the data.
///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
- ///
- /// Custom metadata to be associated with the data.
+ ///
+ /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -457,18 +457,18 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
string? displayName = default,
- string? mimeType = default,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::System.Collections.Generic.IList? customMetadata = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? mimeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest
{
DisplayName = displayName,
- MimeType = mimeType,
- ChunkingConfig = chunkingConfig,
CustomMetadata = customMetadata,
+ ChunkingConfig = chunkingConfig,
+ MimeType = mimeType,
};
return await MediaUploadToFileSearchStoreAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
index 9a48aa82..3481db2d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
@@ -439,26 +439,26 @@ partial void ProcessModelsCountTokensResponseContent(
/// Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.
///
///
- ///
- /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.
- ///
///
/// Request to generate a completion from the model.
///
+ ///
+ /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsCountTokensAsync(
string modelsId,
- global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequest? generateContentRequest = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CountTokensRequest
{
- Contents = contents,
GenerateContentRequest = generateContentRequest,
+ Contents = contents,
};
return await ModelsCountTokensAsync(
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 977fd12f..6eafeaaa 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await ModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
index 23ab4a2e..c23314e1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await ModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index fa71226c..e8b17031 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
var __enumerable = ModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
index 6c13ae48..2c341e7d 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
@@ -445,26 +445,26 @@ partial void ProcessTunedModelsCreateResponseContent(
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Tuned model as a source for training a new model.
- ///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
- ///
///
/// Optional. A short description of this model.
///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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`
@@ -475,13 +475,13 @@ partial void ProcessTunedModelsCreateResponseContent(
public async global::System.Threading.Tasks.Task TunedModelsCreateAsync(
string? tunedModelId = default,
int? topK = default,
+ string? displayName = default,
+ float? topP = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? description = default,
float? temperature = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
string? baseModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -489,13 +489,13 @@ partial void ProcessTunedModelsCreateResponseContent(
var __request = new global::Google.Gemini.TunedModel
{
TopK = topK,
+ DisplayName = displayName,
+ TopP = topP,
TuningTask = tuningTask,
- TunedModelSource = tunedModelSource,
ReaderProjectNumbers = readerProjectNumbers,
- TopP = topP,
Description = description,
Temperature = temperature,
- DisplayName = displayName,
+ TunedModelSource = tunedModelSource,
BaseModel = baseModel,
};
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 dc98e1de..cdae26c9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await TunedModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
index ef8abf74..adc4e1f8 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
@@ -455,26 +455,26 @@ partial void ProcessTunedModelsPatchResponseContent(
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Tuned model as a source for training a new model.
- ///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
- ///
///
/// Optional. A short description of this model.
///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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`
@@ -486,13 +486,13 @@ partial void ProcessTunedModelsPatchResponseContent(
string tunedModelsId,
string? updateMask = default,
int? topK = default,
+ string? displayName = default,
+ float? topP = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? description = default,
float? temperature = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
string? baseModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -500,13 +500,13 @@ partial void ProcessTunedModelsPatchResponseContent(
var __request = new global::Google.Gemini.TunedModel
{
TopK = topK,
+ DisplayName = displayName,
+ TopP = topP,
TuningTask = tuningTask,
- TunedModelSource = tunedModelSource,
ReaderProjectNumbers = readerProjectNumbers,
- TopP = topP,
Description = description,
Temperature = temperature,
- DisplayName = displayName,
+ TunedModelSource = tunedModelSource,
BaseModel = baseModel,
};
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 e4424419..1edf493f 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
@@ -439,31 +439,31 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- Role = role,
EmailAddress = emailAddress,
+ Role = role,
+ 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 92540646..b97bcab8 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
@@ -462,14 +462,14 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -478,17 +478,17 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
string tunedModelsId,
string permissionsId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
- GranteeType = granteeType,
- Role = role,
EmailAddress = emailAddress,
+ Role = role,
+ 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 0a6b7c78..4958dc2e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -439,66 +439,66 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
return await TunedModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index 44195082..e6081294 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -379,66 +379,66 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- SystemInstruction = systemInstruction,
+ GenerationConfig = generationConfig,
+ Contents = contents,
+ Model = model,
ToolConfig = toolConfig,
- Tools = tools,
+ SafetySettings = safetySettings,
CachedContent = cachedContent,
- Model = model,
+ Tools = tools,
+ SystemInstruction = systemInstruction,
Store = store,
- Contents = contents,
- GenerationConfig = generationConfig,
ServiceTier = serviceTier,
- SafetySettings = safetySettings,
};
var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
index 15f6453d..9f1e11b3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -41,8 +41,11 @@ 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.
+ ///
+ ///
+ /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
///
///
/// Configures the input to the batch request.
@@ -50,11 +53,8 @@ public partial interface IGeminiClient
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
- ///
- ///
- /// Required. The user-defined name of this batch.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// Stats about the batch.
@@ -65,11 +65,11 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
string? priority = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
- string? displayName = default,
+ string? model = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs
index 7d93a29f..105a25e8 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
@@ -41,36 +41,36 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// 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 `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
+ ///
+ /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
+ ///
///
/// Configures the input to the batch request.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync(
string batchesId,
string? updateMask = default,
- string? displayName = default,
global::Google.Gemini.BatchStats? batchStats = default,
- string? priority = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
+ string? priority = default,
global::Google.Gemini.InputConfig? inputConfig = default,
+ string? displayName = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
index 98c82520..d79223a3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
@@ -31,46 +31,46 @@ public partial interface IGeminiClient
///
/// Creates CachedContent resource.
///
- ///
- /// Metadata on the usage of the cached content.
- ///
- ///
- /// 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.
- ///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
- ///
- ///
- /// 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.
+ ///
+ /// Input only. New TTL for this resource, input only.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Input only. New TTL for this resource, input only.
- ///
///
/// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsCreateAsync(
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? displayName = default,
- string? expireTime = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? ttl = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
string? model = default,
+ string? expireTime = default,
global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? displayName = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
index 304f809a..0bb39700 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs
@@ -41,48 +41,48 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Metadata on the usage of the cached content.
- ///
- ///
- /// 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.
- ///
- ///
- /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
- ///
- ///
- /// 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.
+ ///
+ /// Input only. New TTL for this resource, input only.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Input only. New TTL for this resource, input only.
- ///
///
/// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
+ ///
+ /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
+ ///
+ /// Metadata on the usage of the cached content.
+ ///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? displayName = default,
- string? expireTime = default,
- global::System.Collections.Generic.IList? tools = default,
- global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
string? ttl = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
string? model = default,
+ string? expireTime = default,
global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? displayName = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs
index 8736c8ac..6862024b 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
@@ -36,23 +36,23 @@ public partial interface IGeminiClient
/// Create a permission to a specific resource.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync(
string corporaId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
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 674f1dfe..23ae22ac 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
@@ -46,14 +46,14 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -62,9 +62,9 @@ public partial interface IGeminiClient
string permissionsId,
string corporaId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
index 68bd379d..63ee8e60 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
index 665d8a1a..8a336250 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index b593a71a..3debf77b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = 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 e0b568c2..e31c28d5 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
@@ -39,20 +39,20 @@ public partial interface IGeminiClient
///
/// 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`
///
+ ///
+ /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync(
string fileSearchStoresId,
global::System.Collections.Generic.IList? customMetadata = default,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? fileName = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
index dbbb97b0..490b5361 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -39,14 +39,14 @@ public partial interface IGeminiClient
///
/// Optional. Display name of the created document.
///
- ///
- /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
+ ///
+ /// Custom metadata to be associated with the data.
///
///
/// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
///
- ///
- /// Custom metadata to be associated with the data.
+ ///
+ /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -54,9 +54,9 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
string? displayName = default,
- string? mimeType = default,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::System.Collections.Generic.IList? customMetadata = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? mimeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs
index a6d6ed6c..e386931b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs
@@ -36,19 +36,19 @@ public partial interface IGeminiClient
/// Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.
///
///
- ///
- /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.
- ///
///
/// Request to generate a completion from the model.
///
+ ///
+ /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsCountTokensAsync(
string modelsId,
- global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequest? generateContentRequest = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
index 7f212608..9d75a43e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
index 694d5bae..27b65d31 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index ba10e4ce..5c8fe972 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs
index 4155af1f..d889f6c1 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
@@ -39,26 +39,26 @@ public partial interface IGeminiClient
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Tuned model as a source for training a new model.
- ///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
- ///
///
/// Optional. A short description of this model.
///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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`
@@ -69,13 +69,13 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task TunedModelsCreateAsync(
string? tunedModelId = default,
int? topK = default,
+ string? displayName = default,
+ float? topP = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? description = default,
float? temperature = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
string? baseModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
index af79c9f6..2c6f13b4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
index e70abd88..84d45998 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
@@ -44,26 +44,26 @@ public partial interface IGeminiClient
///
/// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Tuned model as a source for training a new model.
- ///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.
- ///
///
/// Optional. A short description of this model.
///
///
/// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
///
- ///
- /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
+ ///
+ /// 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`
@@ -75,13 +75,13 @@ public partial interface IGeminiClient
string tunedModelsId,
string? updateMask = default,
int? topK = default,
+ string? displayName = default,
+ float? topP = default,
global::Google.Gemini.TuningTask? tuningTask = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::System.Collections.Generic.IList? readerProjectNumbers = default,
- float? topP = default,
string? description = default,
float? temperature = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
string? baseModel = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
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 5c5f33eb..2eced6f5 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
@@ -36,23 +36,23 @@ public partial interface IGeminiClient
/// Create a permission to a specific resource.
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync(
string tunedModelsId,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
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 9e3910e8..b9a1f31c 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
@@ -46,14 +46,14 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Optional. Immutable. The type of the grantee.
+ ///
+ /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
///
/// 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.
+ ///
+ /// Optional. Immutable. The type of the grantee.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -62,9 +62,9 @@ public partial interface IGeminiClient
string tunedModelsId,
string permissionsId,
string? updateMask = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
- global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
+ global::Google.Gemini.PermissionRole? role = default,
+ global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
index ff24ae25..2cc4c152 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -36,51 +36,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index 296ffc28..c8abc752 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -22,51 +22,51 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// 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.
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
+ ///
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
- ///
- /// Optional. 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. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// Optional. 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}`
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
+ ///
+ /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
+ ///
+ ///
+ /// The 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
- ///
///
/// Optional. The service tier of the request.
///
- ///
- /// 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
+ global::System.Collections.Generic.IList? contents = default,
+ string? model = default,
global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? tools = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
string? cachedContent = default,
- string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.Content? systemInstruction = default,
bool? store = default,
- global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
index 1833c4a1..2c503935 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
@@ -13,105 +13,101 @@ namespace Google.Gemini
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
- 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.ModelStatusModelStageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
- 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.FunctionCallingConfigModeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
@@ -121,322 +117,326 @@ namespace Google.Gemini
typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
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.GroundingChunkStringList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequest))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Tool))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.McpServer))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomLongRunningOperation))]
+ [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(global::Google.Gemini.PromptFeedback))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRating))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(float))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList