ToolUse
class automates the process of using tools by LLM, i.e.:
ToolUse
class provides 3 ways to iterate through the process:
hasNextStep()
and calling nextStep()
in a loop,hasNextStep()
and calls nextStep()
),ToolUse
class to allow LLM call functions
if needed to answer simple math question. We provide 2 functions (add_numbers
and
subtract_numbers
) as tools available to LLM and specify the task in plain language.
The LLM is expected to call the functions in the correct order to get the final result.