What the scheduler needs of the session runtime — declared here, at the consumer (Go style).
API
@Interface()
export abstract class ScheduleSessionCreator {
abstract createSession(args: {
projectId: string;
agentId: string;
workspace?: string;
modelId?: string;
provider?: string;
/**
* Unattended creators pass `allow-all`: nobody is there to answer an ask the default
* preset's approval mode would bring. A workbench Session that only talks passes
* `deny-all`, which asks nobody either.
*/
approvalMode?: "allow-all" | "deny-all";
source?: "schedule" | "workbench" | PageSource;
client?: "workbench";
}): Promise<{ sessionId: string }>;
}Contract Topology
Static AST wiring across @Module / @Provide / @UseMembers (1)
createSession
createSession(args: { projectId: string; agentId: string; workspace?: string; modelId?: string; provider?: string; approvalMode?: "allow-all" | "deny-all"; source?: "schedule" | "workbench" | PageSource; client?: "workbench"; }): Promise<{ sessionId: string }>@paramargs
{ projectId: string; agentId: string; workspace?: string; modelId?: string; provider?: string; approvalMode?: "allow-all" | "deny-all"; source?: "schedule" | "workbench" | PageSource; client?: "workbench"; }@returns
Promise<{ sessionId: string }>