Skip to content

Utilities

Math, time, dynamic loading, and agent loop control.

← Prebuilt Tools overview

ToolExtraDescription
calculatorbaseMath expressions, equations, and calculus.
current_timebaseCurrent date and time with optional timezone.
load_toolbaseDynamically load tools from Python files.
sleepbasePause execution (interruptible).
stopbaseForce-stop the agent event loop.

calculator

Math expressions, equations, and calculus.

python
from elsai_tools.calculator import calculator
ParameterTypeRequiredDescription
expressionstrYesMath expression
modestrNoEvaluation mode
precisionintNoDecimal precision
variablesdictNoVariable substitutions
wrtstrNoDifferentiation variable

current_time

Current date and time with optional timezone.

python
from elsai_tools.current_time import current_time
ParameterTypeRequiredDescription
timezonestrNoIANA timezone name

load_tool

Dynamically load tools from Python files.

python
from elsai_tools.load_tool import load_tool
ParameterTypeRequiredDescription
pathstrYesPath to Python file
namestrYesTool function name to load

sleep

Pause execution (interruptible).

python
from elsai_tools.sleep import sleep
ParameterTypeRequiredDescription
secondsUnion[int, float]YesDuration in seconds

stop

Force-stop the agent event loop.

python
from elsai_tools.stop import stop

Copyright © 2026 Elsai Foundry.