AgentLoop — provided by @deepseek-ai/dsh-agent-loop.
Concrete ReactLoopAgent factory and driver service.
create(id: AgentId, options: AgentOptions = {}, meta: Pick<SessionHeader, 'cwd'> = {}): ReactLoopAgent
Create an agent on a fresh per-run session, owned by the accessing fiber. Constructor-driven config calls use the loop fiber itself.
id — agent registry id.options — concrete loop options.meta — optional fresh-session workspace metadata.Returns the published running agent.
async createAgent(ownerCtx: Context, options: CreateAgentOptions): Promise<AgentHandle>
Create an owned agent on a caller-supplied session id.
ownerCtx — caller context that structurally owns the transaction.options — identities, session seed/metadata, loop options, setup, and cancellation.Returns the published handle.
async resume(ownerCtx: Context, options: ResumeAgentOptions): Promise<AgentHandle>
Resume an owned agent from the configured persistence service.
ownerCtx — caller context that owns load, setup, and the live lifecycle.options — persisted identity, loop options, setup, and cancellation.Returns the published handle.