Shorthand helper to extract the Response type from an AgentTypeConfig or ReactAgent.
const agent = createAgent({ responseFormat: z.object({ name: z.string() }), ... });type Response = InferAgentResponse<typeof agent>; // { name: string } Copy
const agent = createAgent({ responseFormat: z.object({ name: z.string() }), ... });type Response = InferAgentResponse<typeof agent>; // { name: string }
Shorthand helper to extract the Response type from an AgentTypeConfig or ReactAgent.