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 @@ -164,8 +164,19 @@ namespace Speechify
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MCPAuthDiscriminator))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MCPAuthDiscriminatorType), TypeInfoPropertyName = "MCPAuthDiscriminatorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolActionClass), TypeInfoPropertyName = "ToolActionClass2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolResponseMapping))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MCPToolConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, global::Speechify.ToolActionClass>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary<string, global::Speechify.ToolResponseMapping>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiOperationMethod), TypeInfoPropertyName = "OpenApiOperationMethod2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiParamIn), TypeInfoPropertyName = "OpenApiParamIn2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenAPIParam))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiBodyContentType), TypeInfoPropertyName = "OpenApiBodyContentType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenAPIBody))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenAPIOperation))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Speechify.OpenAPIParam>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenAPIToolConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList<global::Speechify.OpenAPIOperation>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentToolConfig), TypeInfoPropertyName = "AgentToolConfig2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolApprovalClass), TypeInfoPropertyName = "ToolApprovalClass2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolReach), TypeInfoPropertyName = "ToolReach2")]
Expand Down Expand Up @@ -263,6 +274,9 @@ namespace Speechify
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MCPAuthVariant3Type?), TypeInfoPropertyName = "NullableMCPAuthVariant3Type2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.MCPAuthDiscriminatorType?), TypeInfoPropertyName = "NullableMCPAuthDiscriminatorType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolActionClass?), TypeInfoPropertyName = "NullableToolActionClass2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiOperationMethod?), TypeInfoPropertyName = "NullableOpenApiOperationMethod2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiParamIn?), TypeInfoPropertyName = "NullableOpenApiParamIn2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.OpenApiBodyContentType?), TypeInfoPropertyName = "NullableOpenApiBodyContentType2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.AgentToolConfig?), TypeInfoPropertyName = "NullableAgentToolConfig2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolApprovalClass?), TypeInfoPropertyName = "NullableToolApprovalClass2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Speechify.ToolReach?), TypeInfoPropertyName = "NullableToolReach2")]
Expand Down Expand Up @@ -298,6 +312,8 @@ namespace Speechify
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.Memory>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.KnowledgeBase>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.ToolParam>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.OpenAPIParam>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.OpenAPIOperation>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.ToolReach>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.AgentTool>))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List<global::Speechify.SystemBuiltinInfo>))]
Expand Down Expand Up @@ -545,6 +561,18 @@ public override bool CanConvert(global::System.Type typeToConvert)

|| typeToConvert == typeof(global::Speechify.ToolActionClass?)

|| typeToConvert == typeof(global::Speechify.OpenApiOperationMethod)

|| typeToConvert == typeof(global::Speechify.OpenApiOperationMethod?)

|| typeToConvert == typeof(global::Speechify.OpenApiParamIn)

|| typeToConvert == typeof(global::Speechify.OpenApiParamIn?)

|| typeToConvert == typeof(global::Speechify.OpenApiBodyContentType)

|| typeToConvert == typeof(global::Speechify.OpenApiBodyContentType?)

|| typeToConvert == typeof(global::Speechify.ToolApprovalClass)

|| typeToConvert == typeof(global::Speechify.ToolApprovalClass?)
Expand Down Expand Up @@ -1018,6 +1046,36 @@ public override bool CanConvert(global::System.Type typeToConvert)
return new global::Speechify.JsonConverters.ToolActionClassNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiOperationMethod))
{
return new global::Speechify.JsonConverters.OpenApiOperationMethodJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiOperationMethod?))
{
return new global::Speechify.JsonConverters.OpenApiOperationMethodNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiParamIn))
{
return new global::Speechify.JsonConverters.OpenApiParamInJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiParamIn?))
{
return new global::Speechify.JsonConverters.OpenApiParamInNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiBodyContentType))
{
return new global::Speechify.JsonConverters.OpenApiBodyContentTypeJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.OpenApiBodyContentType?))
{
return new global::Speechify.JsonConverters.OpenApiBodyContentTypeNullableJsonConverter();
}

if (typeToConvert == typeof(global::Speechify.ToolApprovalClass))
{
return new global::Speechify.JsonConverters.ToolApprovalClassJsonConverter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ partial void ProcessAttachToolResponseContent(

/// <summary>
/// Attach Tool<br/>
/// Attach an existing workspace tool definition (webhook / client /<br/>
/// MCP) to the agent by its definition id. Idempotent. To create and<br/>
/// attach in one step, POST to `/v1/agents/{agent_id}/tools` instead.
/// Attach an existing workspace tool definition (webhook, client,<br/>
/// MCP or OpenAPI) to the agent by its definition id. Idempotent. To<br/>
/// create and attach in one step, POST to `/v1/agents/{agent_id}/tools` instead.
/// </summary>
/// <param name="agentId"></param>
/// <param name="toolId"></param>
Expand All @@ -76,9 +76,9 @@ partial void ProcessAttachToolResponseContent(
}
/// <summary>
/// Attach Tool<br/>
/// Attach an existing workspace tool definition (webhook / client /<br/>
/// MCP) to the agent by its definition id. Idempotent. To create and<br/>
/// attach in one step, POST to `/v1/agents/{agent_id}/tools` instead.
/// Attach an existing workspace tool definition (webhook, client,<br/>
/// MCP or OpenAPI) to the agent by its definition id. Idempotent. To<br/>
/// create and attach in one step, POST to `/v1/agents/{agent_id}/tools` instead.
/// </summary>
/// <param name="agentId"></param>
/// <param name="toolId"></param>
Expand Down
23 changes: 12 additions & 11 deletions src/libs/Speechify/Generated/Speechify.AgentClient.CreateTool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ partial void ProcessCreateToolResponseContent(
/// Add a tool to the agent. With `kind=builtin` this creates a<br/>
/// per-agent built-in instance (e.g. `end_call`, `play_audio`); the<br/>
/// `builtin` capability name comes from `config.builtin`. With<br/>
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// `kind=webhook`, `client`, `mcp` or `openapi` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` definition<br/>
/// is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` /<br/>
/// `openapi` definition is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// agent may not carry both under one name. Either refusal is `409<br/>
/// tool_name_taken` with `error.details.held_by` naming the holder, which<br/>
/// for a definition is not necessarily attached to this agent.<br/>
Expand Down Expand Up @@ -96,12 +96,12 @@ partial void ProcessCreateToolResponseContent(
/// Add a tool to the agent. With `kind=builtin` this creates a<br/>
/// per-agent built-in instance (e.g. `end_call`, `play_audio`); the<br/>
/// `builtin` capability name comes from `config.builtin`. With<br/>
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// `kind=webhook`, `client`, `mcp` or `openapi` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` definition<br/>
/// is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` /<br/>
/// `openapi` definition is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// agent may not carry both under one name. Either refusal is `409<br/>
/// tool_name_taken` with `error.details.held_by` naming the holder, which<br/>
/// for a definition is not necessarily attached to this agent.<br/>
Expand Down Expand Up @@ -644,12 +644,12 @@ partial void ProcessCreateToolResponseContent(
/// Add a tool to the agent. With `kind=builtin` this creates a<br/>
/// per-agent built-in instance (e.g. `end_call`, `play_audio`); the<br/>
/// `builtin` capability name comes from `config.builtin`. With<br/>
/// `kind=webhook`, `client`, or `mcp` this atomically creates a<br/>
/// `kind=webhook`, `client`, `mcp` or `openapi` this atomically creates a<br/>
/// workspace tool definition AND attaches it to the agent in one<br/>
/// call. To attach a definition that already exists, use<br/>
/// `PUT /v1/agents/{agent_id}/tools/{tool_id}` instead.<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` definition<br/>
/// is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// Names are refused two ways: a `webhook` / `client` / `mcp` /<br/>
/// `openapi` definition is unique per **project**, a `builtin` is unique per **agent**, and an<br/>
/// agent may not carry both under one name. Either refusal is `409<br/>
/// tool_name_taken` with `error.details.held_by` naming the holder, which<br/>
/// for a definition is not necessarily attached to this agent.<br/>
Expand All @@ -667,7 +667,8 @@ partial void ProcessCreateToolResponseContent(
/// - `builtin`: a worker-resident platform capability (e.g. end_call, play_audio), configured per-agent<br/>
/// - `webhook`: worker signs a payload and POSTs it to your URL<br/>
/// - `client`: worker dispatches to the caller's browser/SDK via data channel<br/>
/// - `mcp`: worker connects to a customer-hosted MCP server and proxies tool calls
/// - `mcp`: worker connects to a customer-hosted MCP server and proxies tool calls<br/>
/// - `openapi`: a REST API described by its OpenAPI document, pinned to the operations you selected; the control plane executes every call
/// </param>
/// <param name="name"></param>
/// <param name="description"></param>
Expand All @@ -676,7 +677,7 @@ partial void ProcessCreateToolResponseContent(
/// </param>
/// <param name="config"></param>
/// <param name="actionClass">
/// The impact class for a shared kind (`webhook`/`client`/`mcp`),<br/>
/// The impact class for a shared kind (`webhook`/`client`/`mcp`/`openapi`),<br/>
/// whose definition is created here. Omitted, the server stamps the<br/>
/// verb default. Ignored for a built-in, whose class the platform fixes.
/// </param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ partial void ProcessListToolsResponseContent(
/// <summary>
/// List Agent Tools<br/>
/// List everything this agent can do: built-in capabilities and<br/>
/// attached external tool definitions (webhook / client / MCP) in<br/>
/// attached tool definitions (webhook, client, MCP and OpenAPI) in<br/>
/// one mixed-kind list. Each item carries its resolved config inline.<br/>
/// Cursor-paginated: omit `cursor` for the first page; walk pages while<br/>
/// `has_more` is true (default page size 50, max 200).
Expand Down Expand Up @@ -86,7 +86,7 @@ partial void ProcessListToolsResponseContent(
/// <summary>
/// List Agent Tools<br/>
/// List everything this agent can do: built-in capabilities and<br/>
/// attached external tool definitions (webhook / client / MCP) in<br/>
/// attached tool definitions (webhook, client, MCP and OpenAPI) in<br/>
/// one mixed-kind list. Each item carries its resolved config inline.<br/>
/// Cursor-paginated: omit `cursor` for the first page; walk pages while<br/>
/// `has_more` is true (default page size 50, max 200).
Expand Down
Loading