-
Notifications
You must be signed in to change notification settings - Fork 342
Expose Protocol Methods for GraderClient and ContainerClient #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ShivangiReja
merged 3 commits into
openai:main
from
ShivangiReja:shreja/AddGradersAndContainers
Jul 25, 2025
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import "../base/typespec/containers/main.tsp"; | ||
| import "@azure-tools/typespec-client-generator-core"; | ||
|
|
||
| using OpenAI; | ||
| using Azure.ClientGenerator.Core; | ||
|
|
||
| @@convenientAPI(Containers.listContainers, false); | ||
| @@convenientAPI(Containers.createContainer, false); | ||
| @@convenientAPI(Containers.retrieveContainer, false); | ||
| @@convenientAPI(Containers.deleteContainer, false); | ||
| @@convenientAPI(Containers.createContainerFile, false); | ||
| @@convenientAPI(Containers.listContainerFiles, false); | ||
| @@convenientAPI(Containers.retrieveContainerFile, false); | ||
| @@convenientAPI(Containers.deleteContainerFile, false); | ||
| @@convenientAPI(Containers.retrieveContainerFileContent, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import "../base/typespec/graders/main.tsp"; | ||
| import "@azure-tools/typespec-client-generator-core"; | ||
|
|
||
| using OpenAI; | ||
| using Azure.ClientGenerator.Core; | ||
|
|
||
| @@convenientAPI(Graders.runGrader, false); | ||
| @@convenientAPI(Graders.validateGrader, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| namespace OpenAI.Containers; | ||
|
|
||
| [CodeGenType("ContainerListResource")] public partial class ContainerListResource { } | ||
| [CodeGenType("ContainerResource")] public partial class ContainerResource { } | ||
| [CodeGenType("ContainerResourceExpiresAfter")] public partial class ContainerResourceExpiresAfter { } | ||
| [CodeGenType("CreateContainerBody")] public partial class CreateContainerBody { } | ||
| [CodeGenType("CreateContainerBodyExpiresAfter")] public partial class CreateContainerBodyExpiresAfter { } | ||
| [CodeGenType("DeleteContainerResponse")] public partial class DeleteContainerResponse { } | ||
| [CodeGenType("CreateContainerFileBody")] public partial class CreateContainerFileBody { } | ||
| [CodeGenType("ContainerFileResource")] public partial class ContainerFileResource { } | ||
| [CodeGenType("ContainerFileListResource")] public partial class ContainerFileListResource { } | ||
| [CodeGenType("DeleteContainerFileResponse")] public partial class DeleteContainerFileResponse { } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| namespace OpenAI.Graders; | ||
|
|
||
| [CodeGenType("GraderStringCheckOperation")] public readonly partial struct GraderStringCheckOperation { } | ||
| [CodeGenType("GraderType")] public readonly partial struct GraderType { } | ||
| [CodeGenType("GraderTextSimilarityEvaluationMetric")] public readonly partial struct GraderTextSimilarityEvaluationMetric { } | ||
| [CodeGenType("GraderStringCheck")] public partial class GraderStringCheck { } | ||
| [CodeGenType("Grader")] public partial class Grader { } | ||
| [CodeGenType("UnknownGrader")] public partial class UnknownGrader { } | ||
| [CodeGenType("GraderLabelModel")] public partial class GraderLabelModel { } | ||
| [CodeGenType("GraderTextSimilarity")] public partial class GraderTextSimilarity { } | ||
| [CodeGenType("GraderPython")] public partial class GraderPython { } | ||
| [CodeGenType("GraderScoreModel")] public partial class GraderScoreModel { } | ||
| [CodeGenType("GraderMulti")] public partial class GraderMulti { } | ||
| [CodeGenType("FineTuneReinforcementHyperparameters")] public partial class FineTuneReinforcementHyperparameters { } | ||
| [CodeGenType("RunGraderRequest")] public partial class RunGraderRequest { } | ||
| [CodeGenType("RunGraderResponse")] public partial class RunGraderResponse { } | ||
| [CodeGenType("RunGraderResponseMetadata")] public partial class RunGraderResponseMetadata { } | ||
| [CodeGenType("RunGraderResponseMetadataErrors")] public partial class RunGraderResponseMetadataErrors { } | ||
| [CodeGenType("ValidateGraderRequest")] public partial class ValidateGraderRequest { } | ||
| [CodeGenType("ValidateGraderResponse")] public partial class ValidateGraderResponse { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.