nanobot/nanobot/agent/tools/__init__.py
Jack Lu e7798a28ee refactor(tools): streamline Tool class and add JSON Schema for parameters
Refactor Tool methods and type handling; introduce JSON Schema support for tool parameters (schema module, validation tests).

Made-with: Cursor
2026-04-04 19:58:44 +08:00

28 lines
563 B
Python

"""Agent tools module."""
from nanobot.agent.tools.base import Schema, Tool, tool_parameters
from nanobot.agent.tools.registry import ToolRegistry
from nanobot.agent.tools.schema import (
ArraySchema,
BooleanSchema,
IntegerSchema,
NumberSchema,
ObjectSchema,
StringSchema,
tool_parameters_schema,
)
__all__ = [
"Schema",
"ArraySchema",
"BooleanSchema",
"IntegerSchema",
"NumberSchema",
"ObjectSchema",
"StringSchema",
"Tool",
"ToolRegistry",
"tool_parameters",
"tool_parameters_schema",
]