Verified, then logged.
Tue 1 Dec 2026 · 16:52 KST / 07:52 UTC한국어 | ENSearch /

02 / IT · Analysis

OpenAI SDK preserves refusals for individual tool calls

The `RunState` interface for approving and resuming saved runs stays the same.

OpenAI’s Python SDK for building agents now preserves explicit rejections of individual tool calls to the same function in v0.26.1. OpenAI said in its 30 Nov 2026 release notes that existing applications can upgrade without a migration.

Compatibility. Setting always_approve=True on one call leaves explicit rejections of other calls to the same function in effect. Nested runs keep pending approvals separate even when their local call IDs match. The RunState interface for approving and resuming saved runs stays the same.

OpenAI said v0.26.0 and v0.26.1 each resumed runs from approval state saved by the other version. The checks used scripted models, SQLite files and an installed wheel, a Python distribution package. Live model providers were outside the scope of the checks.

The SDK requires Python 3.10 or later. Both real-time Twilio examples, twilio and twilio_sip, raise their httpx2 minimum from 2.16.0 to 2.16.2. The twilio example raises its python-multipart minimum from 0.0.33 to 0.0.34, and twilio_sip raises its openai minimum from 3.48.0 to 3.52.0.

AdvancedSQLiteSession, which manages branches of conversation history, now keeps a branch usable after its last item is removed. The branch remains available until it is explicitly deleted or the session is cleared. A branch created after either action gets a new ID.

When an existing SQLite database is reopened, the SDK updates its storage schema automatically. OpenAI said its compatibility checks showed that v0.26.0 and v0.26.1 each read and updated branches populated by the other version.

For strict structured output, the SDK generates a schema that wraps the value of a RootModel, a Python model that can hold a single value or a list, in an object. For RootModel[list[int]], the schema sent to the model provider puts the integer list in the object’s response field.

If a custom model provider returns an unwrapped value, the SDK accepts it and returns an instance of the Python model the application declared. Output schemas also preserve recursive references, including those with annotations.

The SDK also changes how it handles values passed to tools. With strict tool input validation enabled, parameters that expect dates or UUIDs, a type of unique identifier, can accept those values as JSON strings.