feat(ai-foundry): add TypeSpec for Foundry Routines#42779
Open
lindazqli wants to merge 1 commit intoAzure:feature/foundry-releasefrom
Open
feat(ai-foundry): add TypeSpec for Foundry Routines#42779lindazqli wants to merge 1 commit intoAzure:feature/foundry-releasefrom
lindazqli wants to merge 1 commit intoAzure:feature/foundry-releasefrom
Conversation
Next Steps to MergeImportant checks have failed. As of today they are not blocking this PR, but in near future they may.Addressing the following failures is highly recommended:
Comment generated by summarize-checks workflow run. |
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
- Add src/routines/models.tsp with RoutineTrigger (schedule/timer/github_issue), RoutineAction (invoke_agent_responses_api / invoke_agent_invocations_api), RoutineDispatchPayload, RoutineRunDto, and RoutineRunsResponse models - Add src/routines/routes.tsp with createOrUpdate, get, list, delete, dispatch, dispatchAsync, and listRuns operations - Add routines_v1_preview feature flag to FoundryFeaturesOptInKeys - Wire up main.tsp import - Regenerate openapi3 output
8275815 to
8570a43
Compare
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
Comment generated by After APIView workflow run. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds TypeSpec models and routes for the Foundry Routines feature, based on the C# service contracts in Vienna.
New files
src/routines/models.tsp— all Routines domain modelssrc/routines/routes.tsp— 7 REST operationsModified files
src/common/models.tsp— addsroutines_v1_preview: "Routines=V1Preview"toFoundryFeaturesOptInKeysmain.tsp— importssrc/routines/routes.tspopenapi3/— regenerated OpenAPI outputRoutes
/routines/{routineName}/routines/{routineName}/routines/routines/{routineName}/routines/{routineName}:dispatch/routines/{routineName}:dispatchAsync/routines/{routineName}/runsKey model design
RoutineTriggerdiscriminated ontype:"schedule","timer","github_issue"RoutineActiondiscriminated ontype:"invoke_agent_responses_api","invoke_agent_invocations_api"Routine.triggersisRecord<RoutineTrigger>(named dict, matching C#Dictionary<string, RoutineTrigger>)RoutineDispatchPayloaddiscriminated ontypematchingRoutineActionTypeFoundry-Features: Routines=V1Previewheader