Build and test your first tool call
- Follow a model’s request into application code.
- Fix one failure and show what the regression suite proves.
Who decides the next step?
- Routing assigns an input to a path the application already defines.
- In a ReAct loop, the model selects an action and the application runs it within its rules.
Follow one request
- A fixed model response requests lookup_stock with the argument " Notebook ".
- The Python program calls the tool and returns its result.
Run the baseline
- Keep the first output where you can compare it.
- Find the single failing case and predict which function owns it.
python3 first_agent.py --checkFix the behavior and rerun the suite
- Change lookup_stock so formatting differences do not change a valid lookup.
- Confirm that zero stock, missing items, and direct replies still behave as expected.
python3 first_agent.py --checkAdd one case worth keeping
- Choose a failure you would want to catch if the code changed again.
- Specify the expected tool calls and result.
- Explain what your fixed replay can verify and what would need a real model run.