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

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

orchestrationUsage: [Issues, PRs], Target: multi-agent orchestration (high-level patterns)pythonUsage: [Issues, PRs], Target: PythonworkflowsUsage: [Issues, PRs], Target: Workflows

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions