Extract the AgentTypeConfig from an agent-like type.
ExtractAgentConfig: T extends __type Config extends AgentTypeConfigLike Config : never : neverconst agent = createAgent({ ... });
type Config = ExtractAgentConfig<typeof agent>;
// Config is the AgentTypeConfig with Response, State, Context, Middleware, Tools