Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A model emits a function call with schema-valid arguments. What should happen next?" on CodeWiki (https://codewiki.com/practice/mcq/ai/checkpoint-2/checkpoint-2-tool-execution/).
Context (verbatim from the page):
"""
A model emits a function call with schema-valid arguments. What should happen next?
The application allowlists the function, validates domain rules and authorization, then executes it and records the result
The provider has already executed the function, so the application should assume success
The application dynamically imports any function name supplied by the model
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in AI and LLM engineering. Where you are unsure, say so.