No JSDoc comment in source yet.
API
@Interface()
export abstract class OrgSessions {
abstract createSession(args: {
projectId: string;
agentId: string;
workspace?: string;
modelId?: string;
provider?: string;
approvalMode?: ApprovalMode;
/**
* Always "org" here — the runtime opens no other kind of session, and the marker is
* what keeps a desk or ticket session out of development mode's list once the
* organization is gone. Required rather than optional so a new call site cannot
* forget it.
*/
client: "org";
/**
* Always "company": what kind of conversation a desk or ticket session is, recorded in its
* session_meta. It keeps the Session out of every category of the session list, so it is
* listed only in company mode's own views. Required for the same reason as `client`.
*/
source: "company";
}): Promise<{ sessionId: string; workspace: 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?: ApprovalMode; client: "org"; source: "company"; }): Promise<{ sessionId: string; workspace: string }>@paramargs
{ projectId: string; agentId: string; workspace?: string; modelId?: string; provider?: string; approvalMode?: ApprovalMode; client: "org"; source: "company"; }@returns
Promise<{ sessionId: string; workspace: string }>