Infer the state type from an agent, graph, or direct state type.
Detection order:
~agentTypes
~RunOutput
~OutputType
Infer the state type from an agent, graph, or direct state type.
Detection order:
~agentTypes) → InferAgentState~RunOutput) → Extract RunOutput~OutputType) → Extract OutputType