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 / @UseMembers (2)
start
start(task: AgentTaskStart): Promise<{ sessionId: string }>Opens the conversation and starts the task in it (see the module header).
@paramtask
AgentTaskStart@returns
Promise<{ 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.
@paramuserId
string@paramsessionId
string@returns
Promise<AgentTaskStatus | null>