Goal
Specify an agent name when using --local so you don't have to use the interactive picker when in a multi-agent project.
Context
Azure.yaml can contain multiple host: azure.ai.agent which point to different agent.yaml files (multi-agent)
Current Behavior
(foundry-hostedagentframework-demo) foundry-hostedagentframework-demo % azd ai agent invoke hosted-agentframework-agent --local "what perksplus benefits are there?"
ERROR: cannot use --local with a named agent; named agents are always invoked remotely on Foundry
Suggestion: omit the agent name for local invocation, or remove --local for remote
--local currently requires you to do an interactive selection:
(foundry-hostedagentframework-demo) foundry-hostedagentframework-demo % azd ai agent invoke --local "what perksplus benefits are there?"? Select an agent service: hosted-agentframework-agent
Filter: Type to filter list
> hosted-agentframework-agent
> hosted-agentframework-workflow
Desired Behavior
azd ai agent invoke hosted-agentframework-agent --local "what perksplus benefits are there?" works in the same way that it works without --local so you don't have to use the interactive menu.
Acceptance Criteria
Goal
Specify an agent name when using
--localso you don't have to use the interactive picker when in a multi-agent project.Context
Azure.yaml can contain multiple host: azure.ai.agent which point to different agent.yaml files (multi-agent)
Current Behavior
--localcurrently requires you to do an interactive selection:Desired Behavior
azd ai agent invoke hosted-agentframework-agent --local "what perksplus benefits are there?"works in the same way that it works without--localso you don't have to use the interactive menu.Acceptance Criteria