DevelopersNov 24, 2026, 2:46 AM EST
OpenAI Python SDK adds agent session spending limit controls
OpenAI released version 3.58.0 of its Python SDK with API support for setting and reading spending limits on agent sessions. Python applications can now configure a session’s limit and retrieve the configured value through the SDK. The release notes describe the feature at the session level and give no details on when a limit takes effect or what happens when a session reaches it. The update also clarifies when to omit the completion choice count.
Why it matters
Applications that manage agent sessions can use the SDK both to set a spending limit and to check the value configured for a session.
Sources
- PrimaryOpenAI Python SDKSource date ·
Written by AIToolMaps from the source above and checked against it sentence by sentence.