@agentium/harness package and removes several deprecated or ambiguous APIs. Upgrade related Agentium packages together, then apply the changes below. Keep state migrations separate from dependency installation.
What changed
Public Zod 3 support, legacy session snapshot readers, and buffered
VoicePipeline remain. An upgrade does not automatically convert existing session or protocol storage into durable execution.
Replace Agent.deep
For a small Agent, configure only the capabilities you need:Make hosting mode explicit
A trusted local router now needs:Migrate queues before upgrading BullMQ
The adapter supports BullMQ 5.81.5+ in v5 and 6.3.11+ in v6. Migrate persisted legacy repeat records while still on v5; v6 cannot perform that maintenance. Stop old writers, pause and drain the queue, back up state, remove legacy records, and create stable scheduler IDs. Follow schedule migration for verification and rollback. Retries can repeat external effects. Use application idempotency or a replay-aware durable driver; registering an ordinary Agent as a worker does not establish that contract.Update voice clients
- Import voice adapters from
@agentium/core/voice. - Native OpenAI input transcription defaults to
gpt-transcribe; Gemini Live defaults togemini-3.8-livein this implementation. Validate your own audio corpus when changing models. - Socket.IO clients acknowledge audio sequence numbers and actual playback completion. Discard queued playback on
voice.clear. - Reconnection is opt-in. OpenAI fresh recovery loses provider history; Gemini recovery requires a safe resumable checkpoint. Uncertain tool effects require host reconciliation.
createRealtimeCall()accepts WebRTC SDP. It does not place outbound SIP calls; use the separate telephony layer.
Update observability
UseLangfuseOTLPExporter or "langfuse-otlp" for the OTLP integration. The old LangfuseExporter remains an explicit compatibility path. OTelExporter sends HTTP JSON; use a host SDK bridge for protobuf. Close observers with shutdown() to detach and drain owned exports. See observability.