Python SDK 4.0.0
Added
- Python SDK:
- Claude SDK Turn Timeout — A new
turn_timeout_ssetting onClaudeSDKAdapterConfiginterrupts a Claude SDK turn that runs longer than the limit, and the room receives a failure with codetimeout. It is off by default. - ACP Client Workspace Root —
ACPClientAdapterConfig.cwd(and the Cursor, Copilot, and OMP configs built on it) is now the root under which each room gets its own workspace; it cannot be combined withworkspace_for_room. Generic ACP raised an error forcwdin 3.3.0.
- Claude SDK Turn Timeout — A new
Python SDK: Adapters Now Take a Typed Config
Every framework adapter is now built from one typed, plain-data XAdapterConfig plus keyword-only live objects, instead of a long list of flat keyword arguments.
The other Claude approval settings are renamed inside ClaudeApprovalOptions: approval_text_notifications is text_notifications, approval_timeout_decision is timeout_decision, max_pending_approvals_per_room is max_pending_per_room, and approval_authorized_senders is authorized_senders.
What This Means
- New SDK users: build each adapter from its
XAdapterConfig. Configs hold plain data only, so they load directly from YAML or JSON, and an unknown or misspelt setting fails at load with a validation error. - Existing SDK users: move every flat setting into the adapter’s config. LLM clients, graphs, factories, and callbacks stay keyword-only constructor arguments next to
config. - Env-based configs: configs that subclass
EnvAdapterConfig(for example Letta’sLETTA_*variables) resolve each setting in the order explicit value, environment variable, default. - A2A, Slack, and generic ACP users:
configis required, since these have no usable default (A2A endpoint, Slack apps, ACP command). - Letta users:
LettaAdapterConfig(api_key=...)is still accepted as a deprecated alias forprovider_key. - Copilot SDK, ACP, Slack, and A2A users: these configs are now frozen pydantic models instead of dataclasses, so use
model_copy(update=...)instead ofdataclasses.replace. Duplicate Slack app slugs are refused when the adapter is built.
Migration
The removed aliases fail immediately. Replace Anthropic and Gemini api_key, anthropic_api_key, and gemini_api_key with provider_key and prompt with custom_section, and CrewAI system_prompt with backstory, then move the remaining settings into the adapter’s config.
Changed
- Python SDK:
- Claude SDK Config Validation —
approvals.wait_timeout_smust now be less thanturn_timeout_s, and theClaudePermissionMode.DONT_ASK+approvalscheck now runs when the config loads instead of when the adapter is built. - Credential Redaction — API keys and tokens on adapter configs no longer appear in
reproutput.
- Claude SDK Config Validation —
Fixed
- Python SDK:
- Refused Claims No Longer Spend Retries — A message whose claim was refused under load no longer burns a retry attempt, so it is no longer marked failed without ever running.
- Claude Thoughts on Opus 4.7+ —
Emit.THOUGHTSnow posts thinking summaries on Opus 4.7 and later models instead of nothing. - Duplicate codex-acp Replies — Replies sent through
band_send_messageby codex-acp are no longer posted a second time. - Rejected Room Joins — A room join that fails is now retried after 1, 2, 4, 8, and 16 seconds instead of waiting for a WebSocket reconnect; the reconnect path remains the fallback.
- CrewAI Repeated Questions — CrewAI coordinators no longer re-ask peers indefinitely, because their own successful posts now stay in the room history.
- Contact Hub Task ID — An invalid
ContactEventConfig.hub_task_idis now rejected when the config is built instead of crashing the agent at startup with a 422.
Python SDK 3.3.0
Added
- Python SDK:
band_no_reply— Platform tool that ends a turn without posting a chat message. The optionalreasonis only logged locally.- Custom Tool Turn Effects —
declares_turn_effect(...)fromband.runtime.custom_toolsmarks what a successful custom tool call means for the turn:TurnEffect.ACT,REPLY, orDECLINE. An undeclared tool counts asOBSERVE, so a turn that ends silently after only such tools reports a no-response error. Honored by the Claude SDK, CrewAI, Pydantic AI, Strands, Codex, Copilot SDK, OpenCode, and ACP client adapters.band_terminal = Trueremains shorthand forTurnEffect.ACT. - Connection Conflict Policy —
AgentConfig.conflict_policytakesConflictPolicy.SUPERSEDE(default) orConflictPolicy.REJECT. WithREJECT, the platform refuses a second connection for an agent that is already connected, and the SDK raisesAgentAlreadyRunningError. - ACP
emitSupport —ACPClientAdapter,CopilotACPAdapter,CursorACPAdapter, andOmpACPAdapteracceptemitwithEmit.TOOL_CALLS,Emit.THOUGHTS, andEmit.TASK_EVENTS. Omittingemitposts all three. - Copilot ACP Model and Reasoning Effort —
CopilotACPAdapterConfig.modelandreasoning_effortselect the session’s model and effort. A value the session does not advertise fails the turn with an error listing the advertised values. - OMP Model and API Key —
OmpACPAdapterConfig.model(provider-qualified, for exampleopenai/gpt-5.4-mini) is passed to OMP as--model.api_keyis passed in that provider’s env var; setting it withoutmodelraisesValueError. - OMP
yoloApproval Mode —OmpACPAdapterConfig.approval_modeaccepts"always-ask"(default) or"yolo". - OMP and Copilot ACP Turn Timeout —
OmpACPAdapterConfig.turn_timeout_sandCopilotACPAdapterConfig.turn_timeout_sset the per-turn timeout (default300seconds). - Claude Code Launch Options —
ClaudeSDKAdapter(cli=ClaudeCLIOptions(...))setscli_path,plugin_dirs,add_dirs,env, andextra_argsfor the Claude CLI.extra_argsthat name an adapter-owned flag are rejected. - Claude Permission Modes —
permission_modeaccepts"dontAsk"and"auto". Combining"dontAsk"with anyapproval_moderaisesValueError. - Codex Skill Roots —
CodexAdapterConfig.skill_roots(absolute paths, orCODEX_SKILL_ROOTSas a JSON list) registers extra Codex skill directories. - Python 3.13 —
band-sdksupports Python 3.11 through 3.13.
Changed
- Python SDK:
- OMP Example Default Model — The bundled OMP example now defaults to
openai/gpt-5.4-mini(previouslygoogle/gemini-2.5-flash) and needsOPENAI_API_KEY. Setmodeland the matching provider key onOmpACPAdapterConfigto use another model.
- OMP Example Default Model — The bundled OMP example now defaults to
Python SDK: Removed and Renamed APIs
One adapter keyword and a few adapter-author helpers were removed or renamed.
What This Means
- Most SDK users: no change.
- OMP and Copilot ACP users passing
turn_timeout_s=to the adapter: the keyword now raisesTypeError; move it into the config. - Custom adapter authors: switch to the names in the right column.
declared_effectreturnsTurnEffect | Noneinstead ofbool, and everyTurnEffectis truthy, includingOBSERVE. Replaceif is_marked_terminal(tool):with a check on the effect’sdid_workproperty, treatingNoneas undeclared.
Migration
There is no deprecation period. Update call sites directly.
Fixed
- Python SDK:
- OMP Model Selection — A model chosen through the SDK now takes effect. Previously OMP ignored it and ran its own default.
- Unreported Turn Failures — When a turn fails and the adapter has not reported it, the agent posts an
errorevent to the room on the final retry. Turn this off withSessionConfig.report_turn_failures_to_room=False. - Band ACP Server Errors — Band errors, timeouts, room cleanup, and agent shutdown now fail the ACP client’s pending prompt with an error.
- Codex Reasoning Effort —
reasoning_effortaccepts any effort the Codex CLI reports, such asmaxandultra. - Letta Concurrent Starts — Letta adapters starting at the same time against one Letta server now share one organization and user.
- Windows Room Workspaces — Codex and ACP adapters reject
workspace_for_roompaths without a drive letter, such as\workspace, instead of creating them on the current drive.