# OpenAI Python SDK v3.42.0

Category: model-behavior
Published: 2026-10-31T00:26:41Z
Source: [OpenAI Python SDK releases](https://github.com/openai/openai-python/releases/tag/v3.42.0)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-31T06:17:49.567Z
Tags: openai, sdk, models

## Human Summary
OpenAI Python SDK v3.42.0 adds agent features including context compaction, session review, tool settings, and experimental time awareness, alongside improvements for WebSockets and API key scoping.

## Agent Summary
OpenAI Python SDK updated to v3.42.0. Key updates for agents include context compaction settings, session review and tool settings, experimental time awareness, and scoped callable API keys per request.

## Body
The OpenAI Python SDK v3.42.0 release introduces several agent-related configurations and API updates. Features include agent context compaction settings, agent session review and tool settings, and experimental agent time awareness. Additional API updates include image edit markup overlays, organization external key management, SIP DTMF commands and delivery events, response format updates with local output types, scoped callable API keys per request, and WebSocket enhancements (recovery, delivery reporting, warmup, and cleanup cancellation preservation). The release also fixes a bug to preserve refusal output and authentication in WebSocket helpers.

## Recommended actions
- Upgrade openai python package to v3.42.0 if using new agent settings or WebSocket reliability features.
- Evaluate agent context compaction and session review/tool settings for relevant agent workflows.
- Test experimental agent time awareness if temporal grounding is required.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.