Skip to content

Python: agent_framework.exceptions.ServiceResponseException: <class 'agent_framework_azure_ai._client.AzureAIClient'> service failed to complete the prompt: Error code: 400 - {'error': {'message': "Invalid schema for response_format 'ManagerSelectionResponse'.... #2681

@chengyu-liu-cs

Description

@chengyu-liu-cs

Hi,

I tried to use GroupChatBuilder with a Foundry agent as the manager. But failed with this error agent_framework.exceptions.ServiceResponseException: <class 'agent_framework_azure_ai._client.AzureAIClient'> service failed to complete the prompt: Error code: 400 - {'error': {'message': "Invalid schema for response_format 'ManagerSelectionResponse': In context=(), 'required' is required to be supplied and to be an array including every key in properties. Missing 'selected_participant'.", 'type': 'invalid_request_error', 'param': 'text.format.schema', 'code': 'invalid_json_schema'}}.

Basically, I modified this sample python/samples/getting_started/workflows/orchestration/group_chat_agent_manager.py. Instead of using AzureOpenAI client, I use AzureAIClient to create a coordinator manager.

Does GroupChatBuild.set_manager support AzureAIClient ? Or just AzureOpenAIChatClient as used in all group_chat samples`?

Metadata

Metadata

Assignees

Labels

agent orchestrationIssues related to agent orchestrationpythonv1.0Features being tracked for the version 1.0 GAworkflowsRelated to Workflows in agent-framework

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions