Helper type to extract a subagent by name from a DeepAgent.
The DeepAgent to extract from
The name of the subagent to extract
const agent = createDeepAgent({ subagents: [ { name: "researcher", description: "...", middleware: [ResearchMiddleware] } ] as const,});type Researcher = InferSubagentByName<typeof agent, "researcher">; Copy
const agent = createDeepAgent({ subagents: [ { name: "researcher", description: "...", middleware: [ResearchMiddleware] } ] as const,});type Researcher = InferSubagentByName<typeof agent, "researcher">;
Helper type to extract a subagent by name from a DeepAgent.