Skip to content

Commit 4641f6f

Browse files
committed
Rename
1 parent b438004 commit 4641f6f

File tree

45 files changed

+477
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+477
-477
lines changed

api/OpenAI.net8.0.cs

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

api/OpenAI.netstandard2.0.cs

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

src/Custom/Responses/Items/MCPTool/MCPToolCallApprovalRequestItem.Serialization.cs renamed to src/Custom/Responses/Items/McpTool/McpToolCallApprovalRequestItem.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace OpenAI.Responses;
77

88
[CodeGenSerialization(nameof(ToolArguments), SerializationValueHook = nameof(SerializeToolArgumentsValue), DeserializationValueHook = nameof(DeserializeToolArgumentsValue))]
9-
public partial class MCPToolCallApprovalRequestItem
9+
public partial class McpToolCallApprovalRequestItem
1010
{
1111
// CUSTOM: The REST API serializes this as a string.
1212
[MethodImpl(MethodImplOptions.AggressiveInlining)]

src/Custom/Responses/Items/MCPTool/MCPToolCallApprovalRequestItem.cs renamed to src/Custom/Responses/Items/McpTool/McpToolCallApprovalRequestItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// CUSTOM: Renamed.
44
[CodeGenType("MCPApprovalRequestItemResource")]
5-
public partial class MCPToolCallApprovalRequestItem
5+
public partial class McpToolCallApprovalRequestItem
66
{
77
}

src/Custom/Responses/Items/MCPTool/MCPToolCallApprovalResponseItem.cs renamed to src/Custom/Responses/Items/McpTool/McpToolCallApprovalResponseItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// CUSTOM: Renamed.
44
[CodeGenType("MCPApprovalResponseItemResource")]
5-
public partial class MCPToolCallApprovalResponseItem
5+
public partial class McpToolCallApprovalResponseItem
66
{
77
}

src/Custom/Responses/Items/MCPTool/MCPToolCallItem.Serialization.cs renamed to src/Custom/Responses/Items/McpTool/McpToolCallItem.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace OpenAI.Responses;
77

88
[CodeGenSerialization(nameof(ToolArguments), SerializationValueHook = nameof(SerializeToolArgumentsValue), DeserializationValueHook = nameof(DeserializeToolArgumentsValue))]
9-
public partial class MCPToolCallItem
9+
public partial class McpToolCallItem
1010
{
1111
// CUSTOM: The REST API serializes this as a string.
1212
[MethodImpl(MethodImplOptions.AggressiveInlining)]

src/Custom/Responses/Items/MCPTool/MCPToolCallItem.cs renamed to src/Custom/Responses/Items/McpTool/McpToolCallItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// CUSTOM: Renamed.
44
[CodeGenType("MCPCallItemResource")]
5-
public partial class MCPToolCallItem
5+
public partial class McpToolCallItem
66
{
77
}

src/Custom/Responses/Items/MCPTool/MCPToolDefinition.cs renamed to src/Custom/Responses/Items/McpTool/McpToolDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// CUSTOM: Renamed.
44
[CodeGenType("MCPListToolsTool")]
5-
public partial class MCPToolDefinition
5+
public partial class McpToolDefinition
66
{
77
}

src/Custom/Responses/Items/MCPTool/MCPToolDefinitionListItem.cs renamed to src/Custom/Responses/Items/McpTool/McpToolDefinitionListItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
// CUSTOM: Renamed.
44
[CodeGenType("MCPListToolsItemResource")]
5-
public partial class MCPToolDefinitionListItem
5+
public partial class McpToolDefinitionListItem
66
{
77
}

src/Custom/Responses/Items/ResponseItem.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,24 +116,24 @@ public static ReferenceResponseItem CreateReferenceItem(string id)
116116
return new ReferenceResponseItem(id);
117117
}
118118

119-
public static MCPToolCallApprovalRequestItem CreateMCPApprovalRequestItem(string serverLabel, string name, BinaryData arguments)
119+
public static McpToolCallApprovalRequestItem CreateMcpApprovalRequestItem(string serverLabel, string name, BinaryData arguments)
120120
{
121-
return new MCPToolCallApprovalRequestItem(serverLabel, name, arguments);
121+
return new McpToolCallApprovalRequestItem(serverLabel, name, arguments);
122122
}
123123

124-
public static MCPToolCallApprovalResponseItem CreateMCPApprovalResponseItem(string approvalRequestId, bool approved)
124+
public static McpToolCallApprovalResponseItem CreateMcpApprovalResponseItem(string approvalRequestId, bool approved)
125125
{
126-
return new MCPToolCallApprovalResponseItem(approvalRequestId, approved);
126+
return new McpToolCallApprovalResponseItem(approvalRequestId, approved);
127127
}
128128

129-
public static MCPToolCallItem CreateMCPToolCallItem(string serverLabel, string name, BinaryData arguments)
129+
public static McpToolCallItem CreateMcpToolCallItem(string serverLabel, string name, BinaryData arguments)
130130
{
131-
return new MCPToolCallItem(serverLabel, name, arguments);
131+
return new McpToolCallItem(serverLabel, name, arguments);
132132
}
133133

134-
public static MCPToolDefinitionListItem CreateMCPToolDefinitionListItem(string serverLabel, IEnumerable<MCPToolDefinition> toolDefinitions)
134+
public static McpToolDefinitionListItem CreateMcpToolDefinitionListItem(string serverLabel, IEnumerable<McpToolDefinition> toolDefinitions)
135135
{
136-
return new MCPToolDefinitionListItem(serverLabel, toolDefinitions);
136+
return new McpToolDefinitionListItem(serverLabel, toolDefinitions);
137137
}
138138

139139
}

0 commit comments

Comments
 (0)