agentInput

Utility function to get AIAgentContext.agentInput and try to cast it to some expected type.

Throws

If agent input can't be cast to T