AIToday
Large Language ModelsAI Coding AssistantsAI WeeklyPublished: Nov 1, 2026, 10:00 JST

OpenAI Python SDK 3.42.0 adds agent context compaction

Send on LINE
OpenAI Python SDK 3.42.0 adds agent context compaction

3 Key Points

  1. What happened

    OpenAI shipped Python SDK 3.42.0 on October 31, 2026, adding "agent context compaction settings," "agent session review and tool settings," and experimental agent time awareness.

  2. Why it matters

    Summarization behavior that used to be opaque is now something agent builders set in their own call, so compaction can be tuned per request rather than left to defaults.

WHO IT HITSDevelopers and teams building AI agents in Python are the direct audience: compaction is now a setting they control in their own call, and external key management changes how organizations handle credentials.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

SDK 3.42.0 moves agent controls from server-side defaults into client code. The release notes frame this explicitly: summarization behavior that used to be opaque is now something you set in your own call, alongside agent session review and tool settings and experimental agent time awareness. Those three agent-focused additions sit next to security work in the same version, including organization external key management and callable API keys scoped to each request — a pairing that suggests credential handling and agent behavior are being updated together rather than as separate tracks.

The rest of the release touches real-time and WebSocket plumbing: SIP DTMF commands and delivery events, improved WebSocket recovery and delivery reporting, WebSocket warmup with preserved cleanup cancellation, and a fix that preserves refusal output and authentication in WebSocket helpers. For agent builders, the compaction setting is the first item to read, since it changes what the client can control directly.

FAQ
What is agent context compaction in the OpenAI Python SDK?
It is a settings addition in SDK 3.42.0. Summarization behavior that used to be opaque is now something builders set in their own call.
Does the release change how API keys are handled?
Yes. The notes add organization external key management and keep callable API keys scoped to each request.
What WebSocket changes are included?
The release improves WebSocket recovery and delivery reporting, supports WebSocket warmup, preserves cleanup cancellation, and fixes refusal output and authentication in WebSocket helpers.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleJudge lets NAACP Clean Air Act suit against xAI proceed