Summary
Add a --call-id flag to azd ai agent invoke that sends the value as the x-agent-foundry-call-id header when invoking a locally running agent. The header is intentionally local-only and is never forwarded on remote Foundry requests.
Details
- Add
AgentFoundryCallIDHeader constant in agent_api/operations.go
- Add
--call-id flag to invoke, threaded through invokeFlags
- Implement
applyLocalCallIDHeader helper that sets the header on local paths (responsesLocal, invocationsLocal) only
- Update help text and CHANGELOG to document the local-only scope
- Add tests verifying the header is present when
--call-id is set and absent when omitted
Summary
Add a
--call-idflag toazd ai agent invokethat sends the value as thex-agent-foundry-call-idheader when invoking a locally running agent. The header is intentionally local-only and is never forwarded on remote Foundry requests.Details
AgentFoundryCallIDHeaderconstant inagent_api/operations.go--call-idflag toinvoke, threaded throughinvokeFlagsapplyLocalCallIDHeaderhelper that sets the header on local paths (responsesLocal,invocationsLocal) only--call-idis set and absent when omitted