2.7.0 (2026-09-18)
Features Added
- Added preview Voice Agent support, including voice agent definitions, realtime sessions and events, conversations, audio, and telephony models.
- Added
.beta.agents.create_from_prompt()to generate and create a Voice Agent from high-level inputs. - Added the
.beta.voice_agents.conversationssub-client for managing voice conversations and retrieving their responses, conversation items, and audio. - Added
.beta.voice_agents.realtime.connect()for sync and async realtime Voice Agent sessions with typed client and server events. - Added the
.beta.voice_agents.telephonysub-client for managing calls, bindings, transfer targets, and durable outbound call jobs. - Added optional
harnessandskillsproperties toPromptAgentDefinition, with new GitHub Copilot harness, toolset, and skill-reference models. - Added invocation moderation through
RaiConfig.invocations_moderationandRaiInvocationModeration. - Added
ToolboxesOperations.invoke_latest_toolbox_mcp()and toolbox version metadata throughToolboxObject.updated_atandToolboxObject.versions. - Added
DataGenerationJobOutputOptions.write_modefor controlling dataset output writes andTracesDataGenerationJobSource.trace_idsfor selecting explicit traces. - Made
TracesDataGenerationJobOptions.max_samplesoptional. - Added read-only agent lifecycle properties
AgentDetails.configuration_stateandAgentSessionResource.stopped_at.
Breaking Changes
Breaking changes in beta classes:
- Removed the
max_samplesconstructor argument and property fromDataGenerationJobOptionsandSimulationSeedDataGenerationJobOptions. - The
ToolboxObjectconstructor now requiresupdated_atandversions.
Dependency update
- Added the optional
voicedependency group, which installswebsocketsfor sync realtime Voice Agent sessions andaiohttpfor async sessions.
Sample updates
- Added
sample_voice_agent_basic.pyundersamples/agents/voice/, demonstrating the Voice Agent management lifecycle. - Added
sample_voice_agent_generate.py, demonstrating guided Voice Agent authoring with.beta.agents.create_from_prompt(). - Added
sample_voice_agent_live_text_conversation.py, demonstrating a persisted, typed realtime Voice Agent conversation. - Added
sample_voice_agent_live_audio_conversation_async.py, demonstrating a hands-free realtime audio conversation with barge-in. - Added
sample_voice_agent_live_function_tool.py, demonstrating client-side function execution during a realtime Voice Agent session. - Added
sample_voice_agent_read_conversation.py, demonstrating how to read a persisted Voice Agent conversation and transcript. - Added
sample_voice_agent_read_conversation_audio.py, demonstrating how to retrieve merged conversation audio and individual audio segments. - Added
sample_voice_agent_versions.py, demonstrating Voice Agent version and draft management. - Added
sample_voice_agent_with_tools.py, demonstrating audio configuration, tools, and self-deployed models. - Updated
sample_synthetic_multiturn_evaluation.pyto set the service-required simulation seedmax_samplesfield through the model's mapping interface becauseSimulationSeedDataGenerationJobOptionsno longer exposes it as a constructor argument.