entity.tools package
- entity.tools.register_tool(func, name=None, *, category=None, description=None, input_model=None, output_model=None)[source]
Register
funcundernamewith optional metadata.
- class entity.tools.ToolInfo(name, func, category=None, description=None, input_model=None, output_model=None)[source]
Bases:
objectMetadata about a registered tool.
- Parameters:
- __init__(name, func, category=None, description=None, input_model=None, output_model=None)
- entity.tools.clear_registry()[source]
Remove all registered tools (mainly for tests).
- Return type:
None
- class entity.tools.SandboxedToolRunner(timeout=5.0, memory_mb=None)[source]
Bases:
objectRun tools with timeout and optional resource limits.
This is a compatibility wrapper around SecureSandboxRunner. For new code, use SecureSandboxRunner directly for better security.
- __init__(timeout=5.0, memory_mb=None)[source]
Initialize sandbox with basic isolation for backward compatibility.