AgentSession
Unpublished development API. This package is under development and is not available as a published release.
Explicit owner of execution; observing and releasing a subscription are inert. The conditional preserves structural widening of authored tool sessions.
import type { AgentSession } from '@threadplane/core';Declaration
export type AgentSession<TTools extends {
[K in keyof TTools]: ToolContract;
} = Record<string, ToolContract>> = TTools extends unknown ? {
getSnapshot(): AgentSnapshot<TTools>;
subscribe(notify: () => void): () => void;
submit(input: AgentSubmitInput, options?: AgentSubmitOptions): Promise<CompleteOutcome>;
stop(): Promise<void>;
checkStatus?(): Promise<void>;
dispose(): Promise<void>;
} : never;Type parameters
TTools{ [K in keyof TTools]: ToolContract; }Default:Record<string, ToolContract>