Skip to content

Python: Semantic kernel equivalent of model retry upon tool call error #12946

@moonbox3

Description

@moonbox3

Discussed in #12884

Originally posted by smokhasi August 8, 2025
I would like to the pass the tool call error message back to the LLM so that the LLM can correct itself. Is that possible?

Pydantic AI supports something similar using model retry

For example, I have a plugin generating sql queries which is then executed on the database and the sql query fails for some reason. I would like to be able to pass the sql error message back to the plugin responsible for generating sql queries to correct the sql query.

Metadata

Metadata

Assignees

Labels

pythonPull requests for the Python Semantic Kernel

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions