@demicodes/agent
v0.3.3
Published
Session runtime and transport-neutral client and server protocol for Demi.
Readme
@demicodes/agent
The session runtime and transport-neutral client/server protocol for Demi. It
owns a turn's lifecycle — queueing, provider streaming, tool execution, steering,
compaction, abort, and yield wakeups — and exposes it through an AgentClient
that the REPL and web UI both consume.
AgentServer— owns sessions;server.client()returns an in-process client.AgentClient—open/send/steer/abort/close/subscribe.- Transports: in-process, stdio (
@demicodes/agent/stdio), or WebSocket.
import { AgentServer } from '@demicodes/agent'
const server = new AgentServer({ agent, providers })
const client = server.client()See Embed the UI. Part of Demi. Apache-2.0.
