[WIP] Add Invoke API TypeSpec for Foundry Agents#40592
[WIP] Add Invoke API TypeSpec for Foundry Agents#40592Kishore712 wants to merge 1 commit intoAzure:feature/foundry-v2-spec-folder-structurefrom
Conversation
Define model-agnostic invoke API contract for v2 hosted agents: - InvokeRequest/InvokeResponse models with multimodal input support - InputItem discriminated union (text, image, audio, document) - InputSource discriminated union (url, file, base64) - Human-in-the-loop types (ResumeRequest, InterruptInfo) - Streaming SSE event types (invocation.created, message.delta, etc.) - Annotation types for file references - Wire into sdk-service-agents-contracts via main.tsp import Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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. |
|
@Kishore712 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
1 similar comment
|
@Kishore712 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
|
|
@RaviPidaparthi for review |
Summary
Adds TypeSpec definitions for the new Invoke API (
POST /invoke) endpoint for the Foundry Agents service.Changes
invoke/models.tsp— Request/response models:InvokeRequest,InvokeResponse,AgentDef,AgentDefType,InputItem,ResumeRequest,InvokeAnnotation,InvocationStatus,OutputItem,UsageInfoinvoke/routes.tsp— Route definition forPOST /invokewith streaming supportsdk-service-agents-contracts/client.tsp— Access/usage annotations for invoke typessdk-service-agents-contracts/main.tsp— Import invoke routes into the agents contracts moduleContext
The invoke endpoint is a model-agnostic, agent-centric invocation API for v2 hosted agents (ADC-based). Key features:
AgentDef) instead of full agent definitionsession_idResumeRequestwithinterrupt_idstream: true) response modes