Skip to content

Python: Bug: AttributeError in azure_ai_agent when invoking agent with RAG (Azure AI Search) on v1.32.2 #12422

@MarekFabinski

Description

@MarekFabinski

Description
After updating to the latest version of the semantic-kernel library, invoking an AzureAIAgent that is configured to use the built-in Azure AI Search tool for Retrieval-Augmented Generation (RAG) consistently fails. The process throws an AttributeError: 'RunStepDeltaToolCall' object has no attribute 'azure_ai_search' deep within the library's streaming logic.

This appears to be a breaking change or a bug in how the latest SDK version parses streaming tool call responses from the Azure AI service, as downgrading to an earlier version 1.32.1 resolves the issue.

Image

Expected behavior
The invoke() call should complete successfully. The AzureAIAgent should use its RAG tool in the cloud, synthesize an answer, and stream the final ChatMessageContent back to the orchestrator without any errors.

Metadata

Metadata

Assignees

Labels

agentsbugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions