Skip to content

Python: How can I create Deterministic AI Agents? #13164

@sashanknjs

Description

@sashanknjs

Hi,

I am developing an enterprise application where I need the AI agents (AzureAIAgent) to be deterministic (produce exactly same response to the same prompt and instruction) over multiple runs. From previous discussions, I understood that the 'Seed' parameter can help get close responses although it does not guarantee the same. I have seen that the semantic kernel supports this parameter with the "OpenAIPromptExecutionSettings" and "AzureChatPromptExecutionSettings" classes, however, if I understood correctly, it is only defined for chat completion models but not for the "AzureAIAgent" class. Is there a way to apply this parameter for my agents, or is there any other way to make my agents as deterministic as possible?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    pythonPull requests for the Python Semantic Kerneltriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions