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 @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// An audio content block.
/// An audio content block.<br/>
/// Example: {"type":"audio","data":"BASE64_ENCODED_AUDIO","mime_type":"audio/wav"}
/// </summary>
public sealed partial class AudioContent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Configuration for audio output format.
/// Configuration for audio output format.<br/>
/// Example: {"type":"audio","sample_rate":24000}
/// </summary>
public sealed partial class AudioResponseFormat
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Code execution call step.
/// Code execution call step.<br/>
/// Example: {"type":"code_execution_call","arguments":{"code":"print(sum(range(1, 11)))","language":"python"},"id":"code_call_71021"}
/// </summary>
public sealed partial class CodeExecutionCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Code execution result step.
/// Code execution result step.<br/>
/// Example: {"type":"code_execution_result","call_id":"code_call_71021","result":"55\n"}
/// </summary>
public sealed partial class CodeExecutionResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace Google.Gemini.NextGen
public readonly partial struct Content : global::System.IEquatable<Content>
{
/// <summary>
/// An audio content block.
/// An audio content block.<br/>
/// Example: {"type":"audio","data":"BASE64_ENCODED_AUDIO","mime_type":"audio/wav"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.AudioContent? Audio { get; init; }
Expand Down Expand Up @@ -47,7 +48,8 @@ public bool TryPickAudio(
: throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}.");

/// <summary>
/// A document content block.
/// A document content block.<br/>
/// Example: {"type":"document","data":"BASE64_ENCODED_DOCUMENT","mime_type":"application/pdf"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.DocumentContent? Document { get; init; }
Expand Down Expand Up @@ -84,7 +86,8 @@ public bool TryPickDocument(
: throw new global::System.InvalidOperationException($"Expected union variant 'Document' but the value was {ToString()}.");

/// <summary>
/// An image content block.
/// An image content block.<br/>
/// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.ImageContent? Image { get; init; }
Expand Down Expand Up @@ -121,7 +124,8 @@ public bool TryPickImage(
: throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}.");

/// <summary>
/// A text content block.
/// A text content block.<br/>
/// Example: {"type":"text","text":"Hello, how are you?"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.TextContent? Text { get; init; }
Expand Down Expand Up @@ -158,7 +162,8 @@ public bool TryPickText(
: throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}.");

/// <summary>
/// A video content block.
/// A video content block.<br/>
/// Example: {"type":"video","uri":"https://www.youtube.com/watch?v=9hE5-98ZeCg"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.VideoContent? Video { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// A document content block.
/// A document content block.<br/>
/// Example: {"type":"document","data":"BASE64_ENCODED_DOCUMENT","mime_type":"application/pdf"}
/// </summary>
public sealed partial class DocumentContent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Outbound networking configuration for the sandbox. Accepts an object with an 'allowlist' array to restrict traffic, or the string 'disabled' to turn off all network access. Omit entirely to allow all outbound traffic with no header injection.
/// Outbound networking configuration for the sandbox. Accepts an object with an 'allowlist' array to restrict traffic, or the string 'disabled' to turn off all network access. Omit entirely to allow all outbound traffic with no header injection.<br/>
/// Example: {"allowlist":[{"domain":"github.com","transform":[{"Authorization":"Bearer your-token"}]},{"domain":"*.googleapis.com"}]}
/// </summary>
public readonly partial struct EnvironmentNetworkEgressAllowlist : global::System.IEquatable<EnvironmentNetworkEgressAllowlist>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Google.Gemini.NextGen
{
/// <summary>
///
/// Example: {"error":{"code":"not_found","message":"Failed to get completed interaction: Result not found."},"event_type":"error"}
/// </summary>
public sealed partial class ErrorEvent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// File Search call step.
/// File Search call step.<br/>
/// Example: {"type":"file_search_call","id":"file_call_88192"}
/// </summary>
public sealed partial class FileSearchCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// File Search result step.
/// File Search result step.<br/>
/// Example: {"type":"file_search_result","call_id":"file_call_88192"}
/// </summary>
public sealed partial class FileSearchResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// A function tool call step.
/// A function tool call step.<br/>
/// Example: {"name":"get_weather","type":"function_call","arguments":{"location":"Boston, MA"},"id":"call_98231"}
/// </summary>
public sealed partial class FunctionCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Result of a function tool call.
/// Result of a function tool call.<br/>
/// Example: {"name":"get_weather","type":"function_result","call_id":"call_98231","result":[{"type":"text","text":"{\u0022weather\u0022:\u0022sunny\u0022}"}]}
/// </summary>
public sealed partial class FunctionResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ namespace Google.Gemini.NextGen
public readonly partial struct FunctionResultSubcontent : global::System.IEquatable<FunctionResultSubcontent>
{
/// <summary>
/// An image content block.
/// An image content block.<br/>
/// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.ImageContent? ImageContent { get; init; }
Expand Down Expand Up @@ -47,7 +48,8 @@ public bool TryPickImageContent(
: throw new global::System.InvalidOperationException($"Expected union variant 'ImageContent' but the value was {ToString()}.");

/// <summary>
/// A text content block.
/// A text content block.<br/>
/// Example: {"type":"text","text":"Hello, how are you?"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.TextContent? TextContent { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Google Maps call step.
/// Google Maps call step.<br/>
/// Example: {"type":"google_maps_call","arguments":{"queries":["parks near San Francisco"]},"id":"maps_call_39201"}
/// </summary>
public sealed partial class GoogleMapsCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Google Maps result step.
/// Google Maps result step.<br/>
/// Example: {"type":"google_maps_result","call_id":"maps_call_39201","result":[{"places":[{"url":"https://maps.google.com/?cid=12345","name":"Golden Gate Park","place_id":"ChIJIQBpAG2ahYAR9R7bNdTLg8M"}]}]}
/// </summary>
public sealed partial class GoogleMapsResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Google Search call step.
/// Google Search call step.<br/>
/// Example: {"type":"google_search_call","arguments":{"queries":["Who won the men\u0027s 100m in Paris 2024?"]},"id":"search_call_19201"}
/// </summary>
public sealed partial class GoogleSearchCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Google Search result step.
/// Google Search result step.<br/>
/// Example: {"type":"google_search_result","call_id":"search_call_19201","result":[{"search_suggestions":"\u003Cdiv class=\u0022container\u0022\u003E...\u003C/div\u003E"}]}
/// </summary>
public sealed partial class GoogleSearchResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// An image content block.
/// An image content block.<br/>
/// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"}
/// </summary>
public sealed partial class ImageContent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Configuration for image output format.
/// Configuration for image output format.<br/>
/// Example: {"type":"image","aspect_ratio":"16:9","image_size":"1K","mime_type":"image/jpeg"}
/// </summary>
public sealed partial class ImageResponseFormat
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ namespace Google.Gemini.NextGen
/// <summary>
/// Signals that the Interaction completed. Sent when the Interaction receives<br/>
/// Complete/Cancel or naturally terminates. No more input can be sent to the<br/>
/// Interaction after this.
/// Interaction after this.<br/>
/// Example: {"event_id":"evt_123","event_type":"interaction.completed","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"completed","updated":"2025-12-04T15:01:45Z"}}
/// </summary>
public sealed partial class InteractionCompletedEvent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Server response confirming that a new interaction was created.
/// Server response confirming that a new interaction was created.<br/>
/// Example: {"event_id":"evt_123","event_type":"interaction.created","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"in_progress","updated":"2025-12-04T15:01:45Z"}}
/// </summary>
public sealed partial class InteractionCreatedEvent
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Google.Gemini.NextGen
public readonly partial struct InteractionSSEEvent : global::System.IEquatable<InteractionSSEEvent>
{
/// <summary>
///
/// Example: {"error":{"code":"not_found","message":"Failed to get completed interaction: Result not found."},"event_type":"error"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.ErrorEvent? Error { get; init; }
Expand Down Expand Up @@ -49,7 +49,8 @@ public bool TryPickError(
/// <summary>
/// Signals that the Interaction completed. Sent when the Interaction receives<br/>
/// Complete/Cancel or naturally terminates. No more input can be sent to the<br/>
/// Interaction after this.
/// Interaction after this.<br/>
/// Example: {"event_id":"evt_123","event_type":"interaction.completed","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"completed","updated":"2025-12-04T15:01:45Z"}}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.InteractionCompletedEvent? Completed { get; init; }
Expand Down Expand Up @@ -86,7 +87,8 @@ public bool TryPickCompleted(
: throw new global::System.InvalidOperationException($"Expected union variant 'Completed' but the value was {ToString()}.");

/// <summary>
/// Server response confirming that a new interaction was created.
/// Server response confirming that a new interaction was created.<br/>
/// Example: {"event_id":"evt_123","event_type":"interaction.created","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"in_progress","updated":"2025-12-04T15:01:45Z"}}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.InteractionCreatedEvent? Created { get; init; }
Expand Down Expand Up @@ -123,7 +125,7 @@ public bool TryPickCreated(
: throw new global::System.InvalidOperationException($"Expected union variant 'Created' but the value was {ToString()}.");

/// <summary>
///
/// Example: {"event_type":"interaction.status_update","interaction_id":"v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM","status":"in_progress"}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.InteractionStatusUpdate? StatusUpdate { get; init; }
Expand Down Expand Up @@ -160,7 +162,7 @@ public bool TryPickStatusUpdate(
: throw new global::System.InvalidOperationException($"Expected union variant 'StatusUpdate' but the value was {ToString()}.");

/// <summary>
///
/// Example: {"delta":{"type":"text","text":"Hello"},"event_type":"step.delta","index":0}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.StepDelta? StepDelta { get; init; }
Expand Down Expand Up @@ -197,7 +199,7 @@ public bool TryPickStepDelta(
: throw new global::System.InvalidOperationException($"Expected union variant 'StepDelta' but the value was {ToString()}.");

/// <summary>
///
/// Example: {"event_type":"step.start","index":0,"step":{"type":"model_output"}}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.StepStart? StepStart { get; init; }
Expand Down Expand Up @@ -234,7 +236,7 @@ public bool TryPickStepStart(
: throw new global::System.InvalidOperationException($"Expected union variant 'StepStart' but the value was {ToString()}.");

/// <summary>
///
/// Example: {"event_type":"step.stop","index":0}
/// </summary>
#if NET6_0_OR_GREATER
public global::Google.Gemini.NextGen.StepStop? StepStop { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Google.Gemini.NextGen
{
/// <summary>
///
/// Example: {"event_type":"interaction.status_update","interaction_id":"v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM","status":"in_progress"}
/// </summary>
public sealed partial class InteractionStatusUpdate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// MCPServer tool call step.
/// MCPServer tool call step.<br/>
/// Example: {"name":"calculate_tax","type":"mcp_server_tool_call","arguments":{"income":120000,"state":"CA"},"id":"mcp_call_29012","server_name":"financial_mcp_server"}
/// </summary>
public sealed partial class MCPServerToolCallStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// MCPServer tool result step.
/// MCPServer tool result step.<br/>
/// Example: {"name":"calculate_tax","type":"mcp_server_tool_result","call_id":"mcp_call_29012","result":{"tax_due":32400},"server_name":"financial_mcp_server"}
/// </summary>
public sealed partial class MCPServerToolResultStep
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
namespace Google.Gemini.NextGen
{
/// <summary>
/// Output generated by the model.
/// Output generated by the model.<br/>
/// Example: {"type":"model_output","content":[{"type":"text","text":"The capital of France is Paris."}]}
/// </summary>
public sealed partial class ModelOutputStep
{
Expand Down
Loading
Loading