Setting temperature through the agent SDK

Author: sammy17Created Oct 20, 2025Updated Sep 19, 2026
Labelsenhancementquestion

Is there a way to set the temperature of the model for the session through the SDK currently?

If not, is there any work arounds or plans to support this feature in the future? I basically want to set the temperature to 0 (or close to 0) to improve consistency and reproducibility of the task I am working on.

Any help regarding this is appreciated, thanks in advance!

Source: anthropics/claude-agent-sdk-python