Variable: SubagentSubjects
Makaio Framework / contracts / SubagentSubjects
Variable: SubagentSubjects
Section titled “Variable: SubagentSubjects”
constSubagentSubjects:BusSubjects<FlatSubjectDefinitions<"subagent", {await: {request:ZodObject<{subagentId:ZodString;timeoutMs:ZodOptional<ZodNumber>; },$strip>;response:ZodObject<{error:ZodOptional<ZodString>;pendingRequest:ZodOptional<ZodObject<{context:ZodOptional<ZodString>;messageId:ZodString;question:ZodString; },$strip>>;result:ZodOptional<ZodString>;status:ZodEnum<{cancelled:"cancelled";completed:"completed";failed:"failed";timeout:"timeout";waiting_input:"waiting_input"; }>; },$strip>; };cancelled:ZodObject<{reason:ZodString;subagentId:ZodString; },$strip>;completed:ZodObject<{error:ZodOptional<ZodString>;result:ZodOptional<ZodString>;subagentId:ZodString;success:ZodBoolean;usage:ZodOptional<ZodObject<{inputTokens:ZodNumber;outputTokens:ZodNumber;totalTokens:ZodNumber; },$strip>>; },$strip>;completeTask: {request:ZodObject<{result:ZodString;subagentId:ZodString;summary:ZodOptional<ZodString>; },$strip>;response:ZodObject<{completed:ZodBoolean; },$strip>; };execute: {request:ZodObject<{config:ZodObject<{adapterName:ZodOptional<ZodString>;contextMode:ZodDefault<ZodEnum<{fork: …;fresh: …; }>>;disallowedTools:ZodOptional<ZodArray<ZodString>>;executionTargetId:ZodOptional<ZodString>;harnessId:ZodOptional<ZodString>;maxDepth:ZodOptional<ZodNumber>;model:ZodOptional<ZodString>;providerConfigId:ZodOptional<ZodString>;responseSchema:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;systemPrompt:ZodOptional<ZodString>;task:ZodString;tools:ZodOptional<ZodArray<ZodString>>;workstreamId:ZodOptional<ZodString>; },$strip>;depth:ZodNumber;parentSessionId:ZodString;subagentId:ZodString;task:ZodString; },$strip>;response:ZodObject<{agentId:ZodOptional<ZodString>;error:ZodOptional<ZodString>;success:ZodBoolean; },$strip>; };executionFailed:ZodObject<{error:ZodString;parentSessionId:ZodString;phase:ZodEnum<{adapter_start:"adapter_start";agent_start:"agent_start";session_create:"session_create"; }>;subagentId:ZodString; },$strip>;getStatus: {request:ZodObject<{subagentId:ZodString; },$strip>;response:ZodObject<{childSessionId:ZodOptional<ZodString>;error:ZodOptional<ZodString>;pendingRequest:ZodOptional<ZodObject<{context:ZodOptional<ZodString>;messageId:ZodString;question:ZodString; },$strip>>;progress:ZodArray<ZodString>;result:ZodOptional<ZodString>;status:ZodEnum<{cancelled:"cancelled";completed:"completed";failed:"failed";hung:"hung";running:"running";spawning:"spawning";waiting_input:"waiting_input"; }>;summary:ZodOptional<ZodString>; },$strip>; };kill: {request:ZodObject<{reason:ZodOptional<ZodString>;subagentId:ZodString; },$strip>;response:ZodObject<{killed:ZodBoolean; },$strip>; };listBySession: {request:ZodObject<{parentSessionId:ZodString; },$strip>;response:ZodObject<{subagents:ZodArray<ZodObject<{status:ZodEnum<{cancelled: …;completed: …;failed: …;hung: …;running: …;spawning: …;waiting_input: …; }>;subagentId:ZodString;task:ZodString;workstreamId:ZodOptional<ZodString>; },$strip>>; },$strip>; };reportProgress: {request:ZodObject<{percentComplete:ZodOptional<ZodNumber>;subagentId:ZodString;update:ZodString; },$strip>;response:ZodObject<{reported:ZodBoolean; },$strip>; };requestInput: {request:ZodObject<{context:ZodOptional<ZodString>;question:ZodString;subagentId:ZodString;timeoutMs:ZodOptional<ZodNumber>; },$strip>;response:ZodObject<{responded:ZodBoolean;response:ZodOptional<ZodString>;timedOut:ZodBoolean; },$strip>; };send: {request:ZodObject<{content:ZodString;inResponseTo:ZodOptional<ZodString>;subagentId:ZodString; },$strip>;response:ZodObject<{resolvedPending:ZodBoolean;sent:ZodBoolean; },$strip>; };spawn: {request:ZodObject<{config:ZodObject<{adapterName:ZodOptional<ZodString>;contextMode:ZodDefault<ZodEnum<{fork: …;fresh: …; }>>;disallowedTools:ZodOptional<ZodArray<ZodString>>;executionTargetId:ZodOptional<ZodString>;harnessId:ZodOptional<ZodString>;maxDepth:ZodOptional<ZodNumber>;model:ZodOptional<ZodString>;providerConfigId:ZodOptional<ZodString>;responseSchema:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;systemPrompt:ZodOptional<ZodString>;task:ZodString;tools:ZodOptional<ZodArray<ZodString>>;workstreamId:ZodOptional<ZodString>; },$strip>;depth:ZodNumber;parentSessionId:ZodString;spawningToolCallId:ZodOptional<ZodString>; },$strip>;response:ZodObject<{status:ZodLiteral<"spawning">;subagentId:ZodString; },$strip>; };spawned:ZodObject<{config:ZodObject<{adapterName:ZodOptional<ZodString>;contextMode:ZodDefault<ZodEnum<{fork:"fork";fresh:"fresh"; }>>;disallowedTools:ZodOptional<ZodArray<ZodString>>;executionTargetId:ZodOptional<ZodString>;harnessId:ZodOptional<ZodString>;maxDepth:ZodOptional<ZodNumber>;model:ZodOptional<ZodString>;providerConfigId:ZodOptional<ZodString>;responseSchema:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;systemPrompt:ZodOptional<ZodString>;task:ZodString;tools:ZodOptional<ZodArray<ZodString>>;workstreamId:ZodOptional<ZodString>; },$strip>;depth:ZodNumber;parentSessionId:ZodString;spawningToolCallId:ZodOptional<ZodString>;subagentId:ZodString;task:ZodString; },$strip>;toChild:ZodObject<{content:ZodString;inResponseTo:ZodOptional<ZodString>;messageId:ZodString;subagentId:ZodString; },$strip>;toParent:ZodObject<{content:ZodString;context:ZodOptional<ZodString>;messageId:ZodString;subagentId:ZodString;type:ZodEnum<{progress:"progress";request_input:"request_input"; }>; },$strip>; }>,"subagent"> =SubagentNamespace.subjects
Defined in: ../../../packages/contracts/src/subagent/namespace.ts:210