MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / Tool

Class Tool

AskAgent/python/core/router.py:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26@dataclass
27class Tool:
28 name: str
29 path: str
30 method: str
31 arguments: dict[str, str]
32 examples: list[str]
33 schema_type: str
34 prompt: str
35 return_structure: dict[str, Any] | None = None
36 handler_class: str | None = None
37
38def init():
39 """Initialize the router module by loading tools."""

Callers 2

list_toolsFunction · 0.85
_load_tools_from_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected