Quiz 6 Question 18 of 20

A developer is debugging a production issue where Claude's function calling behavior is inconsistent. For the same input, Claude sometimes calls tool A first, sometimes tool B first, even with temperature: 0. The tools are: search_knowledge_base(query) and get_user_profile(user_id). The task is: 'Find the user's account history and any relevant support articles.' The developer expects a deterministic sequence: get_user_profile first, then search_knowledge_base. How should this be enforced architecturally?

Select an answer to reveal the explanation.

Motivation