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 @@ -55,7 +55,7 @@ public sealed partial class RealtimeMCPToolCall
public required string ServerLabel { get; set; }

/// <summary>
/// The type of the item. Always `mcp_tool_call`.
/// The type of the item. Always `mcp_call`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.RealtimeMCPToolCallTypeJsonConverter))]
Expand Down Expand Up @@ -90,7 +90,7 @@ public sealed partial class RealtimeMCPToolCall
/// The label of the MCP server running the tool.
/// </param>
/// <param name="type">
/// The type of the item. Always `mcp_tool_call`.
/// The type of the item. Always `mcp_call`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
namespace tryAGI.OpenAI
{
/// <summary>
/// The type of the item. Always `mcp_tool_call`.
/// The type of the item. Always `mcp_call`.
/// </summary>
public enum RealtimeMCPToolCallType
{
/// <summary>
///
/// </summary>
McpToolCall,
McpCall,
}

/// <summary>
Expand All @@ -26,7 +26,7 @@ public static string ToValueString(this RealtimeMCPToolCallType value)
{
return value switch
{
RealtimeMCPToolCallType.McpToolCall => "mcp_tool_call",
RealtimeMCPToolCallType.McpCall => "mcp_call",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -37,7 +37,7 @@ public static string ToValueString(this RealtimeMCPToolCallType value)
{
return value switch
{
"mcp_tool_call" => RealtimeMCPToolCallType.McpToolCall,
"mcp_call" => RealtimeMCPToolCallType.McpCall,
_ => null,
};
}
Expand Down
13 changes: 11 additions & 2 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22195,9 +22195,9 @@ components:
description: The label of the MCP server running the tool.
type:
enum:
- mcp_tool_call
- mcp_call
type: string
description: The type of the item. Always `mcp_tool_call`.
description: The type of the item. Always `mcp_call`.
x-stainless-const: true
description: "A Realtime item representing an invocation of a tool on an MCP server.\n"
RealtimeMCPToolExecutionError:
Expand Down Expand Up @@ -32992,6 +32992,15 @@ x-oaiMeta:
- key: RealtimeServerEventInputAudioBufferTimeoutTriggered
path: <auto>
type: object
- key: RealtimeServerEventOutputAudioBufferStarted
path: <auto>
type: object
- key: RealtimeServerEventOutputAudioBufferStopped
path: <auto>
type: object
- key: RealtimeServerEventOutputAudioBufferCleared
path: <auto>
type: object
- key: RealtimeServerEventResponseCreated
path: <auto>
type: object
Expand Down
Loading