Learn when to use API routes and how to call agents from them. When to UseUnderstand when to create API routes vs direct agent callsCalling AgentsCall agents from API routes with validation