Not every step inside an AI agent's tools needs an LLM call. Learn to draw reasoning boundaries between code and models with typed contracts and validation.