Skip to content

Python: Bug: Python & .Net Response API based Agent doesn't have a Service to register it to AgentGroupChat / GroupChat #12454

Closed
@ian-t-adams

Description

@ian-t-adams

Describe the bug
There is a responses agent in semantic_kernel.agents but I not an equivalent to AzureChatCompletion in semantic_kernel.connectors.ai.open_ai. This means I can't create a service for the Kernel, so are response based agents are only possible as isolated agents. A corresponding connectors.ai.open_ai is required to register them to work within a GroupChat / AgentGroupChat.

To Reproduce
Steps to reproduce the behavior:

  1. In Python or .Net create an AzureResponseAgent https://learn.microsoft.com/en-us/python/api/semantic-kernel/semantic_kernel.agents.open_ai.azure_responses_agent.azureresponsesagent?view=semantic-kernel-python
  2. Attempt to register the AzureResponseAgent with the corresponding Service but it's not available https://learn.microsoft.com/en-us/python/api/semantic-kernel/semantic_kernel.connectors.ai.open_ai.services?view=semantic-kernel-python
  3. Error: Cannot add the newly created AzureResponseAgent to an AgentGroupChat or GroupChat Kernel.

Expected behavior
The ability to use an AzureResponseAgent in either the AgentGroupChat or GroupChat objects,

Screenshots
If applicable, add screenshots to help explain your problem.

Platform

Additional context
Responses API handles truncation issues better and a AzureResponseAgent is required to utilize the responses api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETIssue or Pull requests regarding .NET codebugSomething isn't workingpythonPull requests for the Python Semantic Kernel

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions