What generate() resolves to: PanelResult for a panel agency.
Optional listenStarts a loopback WebSocket listener on 127.0.0.1 that exchanges JSON text:
{ "text": "..." } in, { "text": "..." } out, one request at a time per
connection. It performs no speech recognition or synthesis; a binary frame
receives an audio_not_supported error and close code 1003. Present on
agency instances created with voice: { enabled: true }. Spoken calls use
VoiceSessionFactory.
Optional opts: { Listener options; port 0, the default, picks a free port.
Optional port?: numberResolves to the bound port, URL, and a close() teardown function.
Optional connectOptional exportExports the agent's full configuration as a portable object.
The returned AgentExportConfig (imported from ./agentExport.js)
can be serialized to JSON or YAML and re-imported via importAgent().
Optional metadata: Record<string, unknown>Optional human-readable metadata to attach.
Optional options: { Redaction options; secrets are redacted unless redactSecrets is false.
Optional redactA portable config object.
Optional exportJSONExports the agent's full configuration as a pretty-printed JSON string.
Optional metadata: Record<string, unknown>Optional human-readable metadata to attach.
Optional options: { Redaction options; secrets are redacted unless redactSecrets is false.
Optional redactJSON string with 2-space indentation.
Optional opts: Record<string, unknown>
What
agency()returns: the Agency interface with typed results. Assignable to Agency.