Skip to content
providerkit
GitHub

SubagentResult

type SubagentResult<T> = object &
| {
helperId: string;
output: T;
runId: string;
status: "completed";
}
| {
error: string;
helperId: string;
runId: string;
status: "failed";
}
| {
error: string;
status: "refused";
};

Defined in: agents/src/subagents.ts:84

name: string;
Type Parameter Default type
T unknown