Skip to content

Custom eval tool

igardev edited this page Aug 19, 2025 · 3 revisions

Custom eval tool

Overview

llama-vscode provides to the users the posibility to partially create their own tool. Custom eval tool is a simple one - has one parameters and and uses the provided by the user javascript function to calculate the result.

How to use it

Configure the description of the tool, the parameter description and provide a javascript function (one parameter, returns string) to be called when the tool is used.

Settings:

  • Tool_custom_tool_eval_description: Description of the tool. This description will be used by the AI to decide if this tool should be used. Example: "Use this tool to check if a number is perfect."
  • Tool_custom_eval_tool_property_description: Description of the tool only parameter. This description will be used by the AI to decide what to provide as parameter when using this tool. Example: "a natural number to check if it is perfect or not"
  • Tool_custom_eval_tool_code: javascript function with one parameter, which returns string. Could be a path to a file with javascript function. Example: C:\temp\perfectNimber.js
customEvalTool.mp4
customEvalToolCheck.mp4
Clone this wiki locally