MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / Tool

Class Tool

toolbench/tooleval/evaluation/dataclass.py:10–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 pass
9
10class Tool(BaseModel):
11 tid:str
12 name:str
13 description:str
14 class Parameters(BaseModel):
15 required:List[str]
16 optional:Optional[List[str]] = []
17 type_:str = Field(alias='type')
18 class Properties(BaseModel):
19 type_:str = Field(alias='type')
20 enum:Optional[List[str]] = None
21 description:Optional[str] = None
22 example_value:Optional[Union[str,bool,int,float]] = None
23 properties:Dict[str,Properties]
24 parameters:Parameters
25
26 # meta:ToolMeta #removed
27
28class Question(BaseModel):
29 qid:str

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected