-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
Description:
After deploying WebSearchAgent, chatting in the Agent Playground on the Foundry Portal fails with the error:
"Error Azure credential is required when agents_client is not provided."

In addition, running Pytest also fails with the error "ID cannot be null or empty (Parameter 'id')", as shown below:

Steps to Reproduce:
- Initialize the project:
azd init --template Azure-Samples/ai-foundry-starter-basic. - Initialize AI agent:
azd ai agent init -m https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/python/hosted-agents/web-search-agent/agent.yamland select locationnorthcentralus. - Run
azd up. - Navigate to agent playground on the Foundry Portal and enter "Can you search for the latest news about AI?" in the chat.
- For pytest, copy the folder tests to the root directory.
- Create a new .env file and add the following content.
AZURE_AI_PROJECT_ENDPOINT=""https://ai-account-bvmg7v2ge46ec.services.ai.azure.com/api/projects/ai-project-mhweb2""
AGENT_VERSION=1
AGENT_TEST_MESSAGE="Can you search for the latest news about AI?"
AGENT_KIND=hosted
AGENT_NAME="WebSearchAgent"
- Run
cd testsandpytest test_agent.py -v -s.
Environment:
- Azd version: azd version 1.23.0-beta.1-daily.5672449 (commit 396ced2ad56e83f813810d14ab709a4035ee1629).
- AI Agent Extension version: 0.1.4-preview
- Agent: web-search-agent
- OS: Windows
- Location:
northcentralus.
Expected Behavior:
Chatting is successful on the agent playground, and pytest also works successfully.
@JeffreyCA and @rajeshkamal5050 for notification.
Metadata
Metadata
Assignees
Labels
No labels