Appearance
Utilities
Math, time, dynamic loading, and agent loop control.
| Tool | Extra | Description |
|---|---|---|
calculator | base | Math expressions, equations, and calculus. |
current_time | base | Current date and time with optional timezone. |
load_tool | base | Dynamically load tools from Python files. |
sleep | base | Pause execution (interruptible). |
stop | base | Force-stop the agent event loop. |
calculator
Math expressions, equations, and calculus.
python
from elsai_tools.calculator import calculator| Parameter | Type | Required | Description |
|---|---|---|---|
expression | str | Yes | Math expression |
mode | str | No | Evaluation mode |
precision | int | No | Decimal precision |
variables | dict | No | Variable substitutions |
wrt | str | No | Differentiation variable |
current_time
Current date and time with optional timezone.
python
from elsai_tools.current_time import current_time| Parameter | Type | Required | Description |
|---|---|---|---|
timezone | str | No | IANA timezone name |
load_tool
Dynamically load tools from Python files.
python
from elsai_tools.load_tool import load_tool| Parameter | Type | Required | Description |
|---|---|---|---|
path | str | Yes | Path to Python file |
name | str | Yes | Tool function name to load |
sleep
Pause execution (interruptible).
python
from elsai_tools.sleep import sleep| Parameter | Type | Required | Description |
|---|---|---|---|
seconds | Union[int, float] | Yes | Duration in seconds |
stop
Force-stop the agent event loop.
python
from elsai_tools.stop import stop