A simple agent integrating with LLM to perform mathematical calculations
@action
decorator to define actions that the tool can perform.@retry
decorator to handle potential exceptions and retry the request.V1ActionSelection
object.Tool
class, designed to perform one primary operation: adding two numbers.
Tool
classadd
action using the @action
decoratoradd
Methodask
Methodask
method will cover handling user queries. It performs the following functions:
Thinker
class.ask
method with questions. The tool can handle both numerical and word-based numbers.Tool
sause on top of the Agentd-powered VMs.