mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-07 19:53:40 +00:00
Refactor Tool methods and type handling; introduce JSON Schema support for tool parameters (schema module, validation tests). Made-with: Cursor
28 lines
563 B
Python
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",
|
|
]
|