Skip to content

Commit 4c81c32

Browse files
CopilotjoseharriagaCopilot
authored
Refactor GeneratorStubs files to only contain true stubs (#1180)
This change restores a single convention: `GeneratorStubs.cs` is only for empty internal stubs under `Internal`. `GeneratorStubs.cs` files under `OpenAI` and `OpenAI.Responses` had drifted into mixed-use buckets: some lived outside `Internal`, some exposed public types, and some carried non-stub implementations. --------- * Split generator stubs into dedicated files * style: expand custom CodeGenType declarations * refactor: normalize assistants generator stubs * Fix style * Fix style * Missing whitespace Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix XML doc Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add missing `readonly` keyword to `VectorStoreFileCollectionOrder` Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add missing `readonly` keyword to `VectorStoreFileCollectionOrder` Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Fix typo --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Jose Arriaga Maldonado <josar@microsoft.com> Co-authored-by: Jose Arriaga Maldonado <45773732+joseharriaga@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent ff46911 commit 4c81c32

87 files changed

Lines changed: 927 additions & 845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.TypeSpec.Generator.Customizations;
2+
3+
namespace OpenAI.Assistants;
4+
5+
// CUSTOM: Renamed.
6+
[CodeGenType("AssistantCollectionOptions")]
7+
public partial class AssistantCollectionOptions
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.TypeSpec.Generator.Customizations;
2+
3+
namespace OpenAI.Assistants;
4+
5+
// CUSTOM: Renamed.
6+
[CodeGenType("AssistantCollectionOrder")]
7+
public readonly partial struct AssistantCollectionOrder
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.TypeSpec.Generator.Customizations;
2+
3+
namespace OpenAI.Assistants;
4+
5+
// CUSTOM: Renamed.
6+
[CodeGenType("AssistantToolsCode")]
7+
public partial class CodeInterpreterToolDefinition
8+
{
9+
}

OpenAI/src/Custom/Assistants/GeneratorStubs.cs

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)