Azure / Azure/azure-dev

azd ai agent invoke doesn't provide helpful error message when no agent is deployed

Open
#8,250 1 comment 0 reactions 1 assignee Claimed by @m5i-work View on GitHub
area/error-handling area/ux bug ext-agents
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

If you invoke before you deploy and forget the --local flag the error message is not very helpful.
```bash
(base)➜ basic-agent git:(main) ✗ azd ai agent invoke "what is foundry"

ERROR: agent name is required; provide as the first argument or define an azure.ai.agent service in azure.yaml
(base)➜ basic-agent git:(main) ✗ azd ai agent invoke --local "what is foundry"
Target: localhost:8088 (local)
Message: "what is foundry"
Session: 72194885-285a-4541-b763-093b2104ed03
Conversation: 646cab01-cf82-40b1-ab15-b97c19688271
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.