Tool Mocking
Domain: Tools & Function Calling
π― Motivation
For testing, replace real tools with fake (mock) versions that return predetermined results. Enables testing without real API calls.
π Concrete Example
Mock get_weather: always returns β28C sunnyβ without calling the real API. Test the agentβs logic: does it suggest outdoor activities when sunny? Mock tools make testing fast and free.
π Analogy
A flight simulator - you practice flying without leaving the ground. Mock tools let agents be tested without real API calls, costs, or risks.