Skip to content

fix: detect deployed agent invoke protocol - #9808

Draft
Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/fix-remote-invoke-protocol
Draft

fix: detect deployed agent invoke protocol#9808
Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/fix-remote-invoke-protocol

Conversation

@huimiu

Copy link
Copy Markdown
Member

Why this is needed

Remote azd ai agent invoke previously relied on the local agent definition to choose a protocol. When that definition was stale or missing, a deployed invocations agent could receive a responses payload and fail with an invalid-payload error.

Approach

Remote protocol selection now reads the deployed agent endpoint configuration, filters to invocable protocols, and uses the local definition only when multiple deployed protocols need disambiguation. Explicit protocol and endpoint choices remain authoritative, local invocation behavior is unchanged, and the resolved remote context is reused for the request. Conversation handling was not changed.

Testing

  • go test ./... in cli/azd/extensions/azure.ai.agents

Fixes: #7507

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
24 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added the ext-agents azure.ai.agents extension label Sep 1, 2026
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

azure.ai.agents PR build

Note

This is an unsigned development build. Install it only if you trust this PR.

Install the extension:

azd ext install "https://azuresdkartifacts.z5.web.core.windows.net/azd/extensions/pr/9808/azure-ai-agents.zip"
  • Version: 1.0.0-beta.13.pr.9808.6770521
  • Merge commit: 75f0698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-agents azure.ai.agents extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Remote invoke for invocations-protocol agents silently falls back to responses endpoint, fails with invalid_payload

1 participant