Skip to content

Commit

Permalink
Merge pull request #69 from tryAGI/bot/update-openapi_202410241813
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 24, 2024
2 parents 5fad2fd + a860d79 commit e7215a6
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ partial void ProcessCreateMessageResponseContent(
global::System.Collections.Generic.IList<global::Anthropic.Tool>? tools = default,
int? topK = default,
double? topP = default,
bool? stream = false,
bool? stream = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Anthropic.CreateMessageRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public partial interface IAnthropicApi
global::System.Collections.Generic.IList<global::Anthropic.Tool>? tools = default,
int? topK = default,
double? topP = default,
bool? stream = false,
bool? stream = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class CacheControlEphemeral
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Anthropic.JsonConverters.CacheControlEphemeralTypeJsonConverter))]
public global::Anthropic.CacheControlEphemeralType? Type { get; set; } = global::Anthropic.CacheControlEphemeralType.Ephemeral;
public global::Anthropic.CacheControlEphemeralType? Type { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public sealed partial class CreateMessageRequest
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = false;
public bool? Stream { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class ImageBlock
/// Default Value: image
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "image";
public string? Type { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class InputJsonBlockDelta
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; }
public required string Type { get; set; } = "input_json_delta";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class TextBlock
/// Default Value: text
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "text";
public string? Type { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed partial class TextBlockDelta
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; }
public required string Type { get; set; } = "text_delta";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Anthropic/Generated/Anthropic.Models.ToolBash.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class ToolBash
/// Default Value: bash_20241022
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "bash_20241022";
public string? Type { get; set; }

/// <summary>
/// The name of the tool.<br/>
/// Default Value: bash
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; } = "bash";
public string? Name { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class ToolComputerUse
/// Default Value: computer_20241022
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "computer_20241022";
public string? Type { get; set; }

/// <summary>
/// The name of the tool.<br/>
/// Default Value: computer
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; } = "computer";
public string? Name { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class ToolResultBlock
/// Default Value: tool_result
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "tool_result";
public string? Type { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public sealed partial class ToolTextEditor
/// Default Value: text_editor_20241022
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "text_editor_20241022";
public string? Type { get; set; }

/// <summary>
/// The name of the tool.<br/>
/// Default Value: str_replace_editor
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; } = "str_replace_editor";
public string? Name { get; set; }

/// <summary>
/// The cache control settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class ToolUseBlock
/// Default Value: tool_use
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
public string? Type { get; set; } = "tool_use";
public string? Type { get; set; }

/// <summary>
/// The cache control settings.
Expand Down

0 comments on commit e7215a6

Please sign in to comment.