Interview practice question
Tool returns huge outputs
Machine Learning · AI Agents · Beginner
One of your tools returns 50,000-token responses, and the agent becomes slow and confused. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Return only needed fields; paginate.
- Add filtering parameters to the tool.
- Summarize or truncate large results.
- Store large outputs externally; return references.
- Re-test agent behavior.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.