@prismshadow/penguin-server · packages/server/src/services/agent-tasks.ts:31

AgentTasks

interface

AgentTasks: what HostAgentTasks implements, and a server module reaches through the plugin face.

API

@Interface()
export abstract class AgentTasks {
  abstract start(task: AgentTaskStart): Promise<{ sessionId: string }>;
  abstract status(userId: string, sessionId: string): Promise<AgentTaskStatus | null>;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Moduleexported by
@Provideprovided by

Members (2)

start

start(task: AgentTaskStart): Promise<{ sessionId: string }>

Opens the conversation and starts the task in it (see the module header).

@paramtaskAgentTaskStart
@returnsPromise<{ sessionId: string }>

status

status(userId: string, sessionId: string): Promise<AgentTaskStatus | null>

The task's state for userId, or null when the Session is gone or theirs to read no longer.

@paramuserIdstring
@paramsessionIdstring
@returnsPromise<AgentTaskStatus | null>