Overview

The Tool Parameter Correctness policy is designed to enhance the reliability and precision of LLM tool usage. Its primary function is to ensure that:

  1. The appropriate tools are selected based on the relevant context from the chat history.
  2. The parameters passed to these tools are derived accurately from the context.

This policy reduces errors in tool invocation and improves the overall consistency and effectiveness of interactions.

User: “What is the weather like in Paris tomorrow?”

LLM Response: Calling Weather API with parameter: Location = Paris, Date = Tomorrow

This example highlights how the policy ensures the selection of the correct tool (Weather API) and the use of accurate parameters (Location = Paris, Date = Tomorrow).

Policy Details

This policy is designed to ensure the accurate and efficient usage of tools within an LLM-driven interaction. It evaluates each tool invocation and the associated parameters, ensuring alignment with the user’s intent and the relevant context from the chat history.