Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class InteractionSSEEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("event_type")) __score1++;
if (__jsonProps.Contains("interaction")) __score1++;
if (__jsonProps.Contains("interaction.agent")) __score1++;
if (__jsonProps.Contains("interaction.continuation_token")) __score1++;
if (__jsonProps.Contains("interaction.created")) __score1++;
if (__jsonProps.Contains("interaction.id")) __score1++;
if (__jsonProps.Contains("interaction.model")) __score1++;
Expand All @@ -59,6 +60,7 @@ public class InteractionSSEEventJsonConverter : global::System.Text.Json.Seriali
if (__jsonProps.Contains("event_type")) __score2++;
if (__jsonProps.Contains("interaction")) __score2++;
if (__jsonProps.Contains("interaction.agent")) __score2++;
if (__jsonProps.Contains("interaction.continuation_token")) __score2++;
if (__jsonProps.Contains("interaction.created")) __score2++;
if (__jsonProps.Contains("interaction.id")) __score2++;
if (__jsonProps.Contains("interaction.model")) __score2++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionsInput), TypeInfoPropertyName = "InteractionsInput2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, string>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.ResponseFormat4?, global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseFormat4>>), TypeInfoPropertyName = "OneOfResponseFormat4IListResponseFormat42")]
Expand Down Expand Up @@ -437,7 +438,6 @@ namespace Google.Gemini.NextGen
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ArgumentsDelta))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioContent))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioContentMimeType), TypeInfoPropertyName = "AudioContentMimeType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioData))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioDelta))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,131 +89,131 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.InteractionsInput? Type14 { get; set; }
public byte[]? Type14 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.Dictionary<string, string>? Type15 { get; set; }
public global::Google.Gemini.NextGen.InteractionsInput? Type15 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.ResponseFormat4?, global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseFormat4>>? Type16 { get; set; }
public global::System.Collections.Generic.Dictionary<string, string>? Type16 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.ResponseFormat4? Type17 { get; set; }
public global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.ResponseFormat4?, global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseFormat4>>? Type17 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseFormat4>? Type18 { get; set; }
public global::Google.Gemini.NextGen.ResponseFormat4? Type18 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseModality>? Type19 { get; set; }
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseFormat4>? Type19 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.ResponseModality? Type20 { get; set; }
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.ResponseModality>? Type20 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.SafetySetting>? Type21 { get; set; }
public global::Google.Gemini.NextGen.ResponseModality? Type21 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.SafetySetting? Type22 { get; set; }
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.SafetySetting>? Type22 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.ServiceTier? Type23 { get; set; }
public global::Google.Gemini.NextGen.SafetySetting? Type23 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.Tool>? Type24 { get; set; }
public global::Google.Gemini.NextGen.ServiceTier? Type24 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.Tool? Type25 { get; set; }
public global::System.Collections.Generic.IList<global::Google.Gemini.NextGen.Tool>? Type25 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.WebhookConfig? Type26 { get; set; }
public global::Google.Gemini.NextGen.Tool? Type26 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.CodeExecution? Type27 { get; set; }
public global::Google.Gemini.NextGen.WebhookConfig? Type27 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.Function? Type28 { get; set; }
public global::Google.Gemini.NextGen.CodeExecution? Type28 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.GoogleSearch? Type29 { get; set; }
public global::Google.Gemini.NextGen.Function? Type29 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.MCPServer? Type30 { get; set; }
public global::Google.Gemini.NextGen.GoogleSearch? Type30 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.URLContext? Type31 { get; set; }
public global::Google.Gemini.NextGen.MCPServer? Type31 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.AllowedTools? Type32 { get; set; }
public global::Google.Gemini.NextGen.URLContext? Type32 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.AllowedToolsMode? Type33 { get; set; }
public global::Google.Gemini.NextGen.AllowedTools? Type33 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<string>? Type34 { get; set; }
public global::Google.Gemini.NextGen.AllowedToolsMode? Type34 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.Annotation? Type35 { get; set; }
public global::System.Collections.Generic.IList<string>? Type35 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.FileCitation? Type36 { get; set; }
public global::Google.Gemini.NextGen.Annotation? Type36 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.PlaceCitation? Type37 { get; set; }
public global::Google.Gemini.NextGen.FileCitation? Type37 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.SpeechAnnotation? Type38 { get; set; }
public global::Google.Gemini.NextGen.PlaceCitation? Type38 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.URLCitation? Type39 { get; set; }
public global::Google.Gemini.NextGen.SpeechAnnotation? Type39 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.WordInfo? Type40 { get; set; }
public global::Google.Gemini.NextGen.URLCitation? Type40 { get; set; }
/// <summary>
///
/// </summary>
public object? Type41 { get; set; }
public global::Google.Gemini.NextGen.WordInfo? Type41 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.ArgumentsDelta? Type42 { get; set; }
public object? Type42 { get; set; }
/// <summary>
///
/// </summary>
public global::Google.Gemini.NextGen.AudioContent? Type43 { get; set; }
public global::Google.Gemini.NextGen.ArgumentsDelta? Type43 { get; set; }
/// <summary>
///
/// </summary>
public int? Type44 { get; set; }
public global::Google.Gemini.NextGen.AudioContent? Type44 { get; set; }
/// <summary>
///
/// </summary>
public byte[]? Type45 { get; set; }
public int? Type45 { get; set; }
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ public sealed partial class CreateAgentInteraction
[global::System.Text.Json.Serialization.JsonPropertyName("background")]
public bool? Background { get; set; }

/// <summary>
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")]
public byte[]? ContinuationToken { get; set; }

/// <summary>
/// The environment configuration for the interaction. Can be an object<br/>
/// specifying remote environment sources or a string referencing an existing<br/>
Expand Down Expand Up @@ -146,6 +154,11 @@ public sealed partial class CreateAgentInteraction
/// <param name="background">
/// Input only. Whether to run the model interaction in the background.
/// </param>
/// <param name="continuationToken">
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </param>
/// <param name="environment">
/// The environment configuration for the interaction. Can be an object<br/>
/// specifying remote environment sources or a string referencing an existing<br/>
Expand Down Expand Up @@ -194,6 +207,7 @@ public CreateAgentInteraction(
global::Google.Gemini.NextGen.AgentOption agent,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.AntigravityAgentConfig, global::Google.Gemini.NextGen.CodeMenderAgentConfig, global::Google.Gemini.NextGen.DeepResearchAgentConfig, global::Google.Gemini.NextGen.DynamicAgentConfig>? agentConfig,
bool? background,
byte[]? continuationToken,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.Environment3, string>? environment,
global::Google.Gemini.NextGen.InteractionsInput? input,
global::System.Collections.Generic.Dictionary<string, string>? labels,
Expand All @@ -210,6 +224,7 @@ public CreateAgentInteraction(
this.Agent = agent;
this.AgentConfig = agentConfig;
this.Background = background;
this.ContinuationToken = continuationToken;
this.Environment = environment;
this.Input = input;
this.Labels = labels;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ public sealed partial class CreateModelInteraction
[global::System.Obsolete("This property marked as deprecated.")]
public string? CachedContent { get; set; }

/// <summary>
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")]
public byte[]? ContinuationToken { get; set; }

/// <summary>
/// Required. Output only. The time at which the response was created in ISO 8601 format<br/>
/// (YYYY-MM-DDThh:mm:ssZ).<br/>
Expand Down Expand Up @@ -196,6 +204,11 @@ public sealed partial class CreateModelInteraction
/// Input only. Whether to run the model interaction in the background.<br/>
/// Included only in requests
/// </param>
/// <param name="continuationToken">
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </param>
/// <param name="environment">
/// The environment configuration for the interaction. Can be an object<br/>
/// specifying remote environment sources or a string referencing an existing<br/>
Expand Down Expand Up @@ -271,6 +284,7 @@ public sealed partial class CreateModelInteraction
public CreateModelInteraction(
global::Google.Gemini.NextGen.Model model,
bool? background,
byte[]? continuationToken,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.Environment3, string>? environment,
string? environmentId,
global::Google.Gemini.NextGen.GenerationConfig? generationConfig,
Expand All @@ -291,6 +305,7 @@ public CreateModelInteraction(
string updated = default!)
{
this.Background = background;
this.ContinuationToken = continuationToken;
this.Created = created;
this.Environment = environment;
this.EnvironmentId = environmentId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ public sealed partial class Interaction
[global::System.Obsolete("This property marked as deprecated.")]
public string? CachedContent { get; set; }

/// <summary>
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")]
public byte[]? ContinuationToken { get; set; }

/// <summary>
/// Required. Output only. The time at which the response was created in ISO 8601 format<br/>
/// (YYYY-MM-DDThh:mm:ssZ).<br/>
Expand Down Expand Up @@ -231,6 +239,11 @@ public sealed partial class Interaction
/// Input only. Whether to run the model interaction in the background.<br/>
/// Included only in requests
/// </param>
/// <param name="continuationToken">
/// Opaque token to resume a long decode. Output: set when status is<br/>
/// INCOMPLETE and decoding can be resumed. Input: pass the latest token<br/>
/// back unchanged in CreateInteraction to continue decoding.
/// </param>
/// <param name="created">
/// Required. Output only. The time at which the response was created in ISO 8601 format<br/>
/// (YYYY-MM-DDThh:mm:ssZ).<br/>
Expand Down Expand Up @@ -322,6 +335,7 @@ public Interaction(
global::Google.Gemini.NextGen.AgentOption? agent,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.AntigravityAgentConfig, global::Google.Gemini.NextGen.CodeMenderAgentConfig, global::Google.Gemini.NextGen.DeepResearchAgentConfig, global::Google.Gemini.NextGen.DynamicAgentConfig>? agentConfig,
bool? background,
byte[]? continuationToken,
string? created,
global::Google.Gemini.NextGen.OneOf<global::Google.Gemini.NextGen.Environment3, string>? environment,
string? environmentId,
Expand All @@ -348,6 +362,7 @@ public Interaction(
this.Agent = agent;
this.AgentConfig = agentConfig;
this.Background = background;
this.ContinuationToken = continuationToken;
this.Created = created;
this.Environment = environment;
this.EnvironmentId = environmentId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public sealed partial class InteractionSseEventInteraction
[global::System.Text.Json.Serialization.JsonPropertyName("agent")]
public string? Agent { get; set; }

/// <summary>
/// Output only. Opaque token to resume a long decode when status is incomplete.<br/>
/// Included only in responses
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")]
public byte[]? ContinuationToken { get; set; }

/// <summary>
/// Output only. The time at which the response was created in ISO 8601 format.<br/>
/// Included only in responses
Expand Down Expand Up @@ -93,6 +100,10 @@ public sealed partial class InteractionSseEventInteraction
/// <param name="agent">
/// The agent to interact with.
/// </param>
/// <param name="continuationToken">
/// Output only. Opaque token to resume a long decode when status is incomplete.<br/>
/// Included only in responses
/// </param>
/// <param name="created">
/// Output only. The time at which the response was created in ISO 8601 format.<br/>
/// Included only in responses
Expand Down Expand Up @@ -130,6 +141,7 @@ public sealed partial class InteractionSseEventInteraction
#endif
public InteractionSseEventInteraction(
string? agent,
byte[]? continuationToken,
string? created,
string? model,
string? @object,
Expand All @@ -141,6 +153,7 @@ public InteractionSseEventInteraction(
global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus status = default!)
{
this.Agent = agent;
this.ContinuationToken = continuationToken;
this.Created = created;
this.Id = id;
this.Model = model;
Expand Down
Loading
Loading