Helper type to extract any property from an AgentTypeConfig or ReactAgent.
The AgentTypeConfig or ReactAgent to extract from
The property key to extract ("Response" | "State" | "Context" | "Middleware" | "Tools")
const agent = createAgent({ tools: [myTool], ... });// Extract from agent instancetype Tools = InferAgentType<typeof agent, "Tools">;// Extract from type configtype Response = InferAgentType<MyTypeConfig, "Response">; Copy
const agent = createAgent({ tools: [myTool], ... });// Extract from agent instancetype Tools = InferAgentType<typeof agent, "Tools">;// Extract from type configtype Response = InferAgentType<MyTypeConfig, "Response">;
Helper type to extract any property from an AgentTypeConfig or ReactAgent.