@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
42 lines (41 loc) • 1.27 kB
TypeScript
export type SpawnSubagentParams = {
task: string;
label?: string;
agentId?: string;
model?: string;
thinking?: string;
runTimeoutSeconds?: number;
cleanup?: "delete" | "keep";
expectsCompletionMessage?: boolean;
};
export type SpawnSubagentContext = {
agentSessionKey?: string;
agentChannel?: string;
agentAccountId?: string;
agentTo?: string;
agentThreadId?: string | number;
agentGroupId?: string | null;
agentGroupChannel?: string | null;
agentGroupSpace?: string | null;
requesterAgentIdOverride?: string;
};
export declare const SUBAGENT_SPAWN_ACCEPTED_NOTE = "auto-announces on completion, do not poll/sleep. The response will be sent back as an user message.";
export type SpawnSubagentResult = {
status: "accepted" | "forbidden" | "error";
childSessionKey?: string;
runId?: string;
note?: string;
modelApplied?: boolean;
error?: string;
};
export declare function splitModelRef(ref?: string): {
provider: undefined;
model: undefined;
} | {
provider: string;
model: string;
} | {
provider: undefined;
model: string;
};
export declare function spawnSubagentDirect(params: SpawnSubagentParams, ctx: SpawnSubagentContext): Promise<SpawnSubagentResult>;