Skip to content

Add --call-id flag to azd ai agent invoke for local invocations #8796

Description

@huimiu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions