5
5
from typing import Dict , Union , Iterable
6
6
from typing_extensions import Required , TypedDict
7
7
8
- __all__ = ["ToolDefParam" , "Parameter" ]
9
-
10
-
11
- class Parameter (TypedDict , total = False ):
12
- description : Required [str ]
13
- """Human-readable description of what the parameter does"""
14
-
15
- name : Required [str ]
16
- """Name of the parameter"""
17
-
18
- parameter_type : Required [str ]
19
- """Type of the parameter (e.g., string, integer)"""
20
-
21
- required : Required [bool ]
22
- """Whether this parameter is required for tool invocation"""
23
-
24
- default : Union [bool , float , str , Iterable [object ], object , None ]
25
- """(Optional) Default value for the parameter if not provided"""
26
-
27
- items : object
28
- """Type of the elements when parameter_type is array"""
29
-
30
- title : str
31
- """(Optional) Title of the parameter"""
8
+ __all__ = ["ToolDefParam" ]
32
9
33
10
34
11
class ToolDefParam (TypedDict , total = False ):
@@ -38,8 +15,14 @@ class ToolDefParam(TypedDict, total=False):
38
15
description : str
39
16
"""(Optional) Human-readable description of what the tool does"""
40
17
18
+ input_schema : Dict [str , Union [bool , float , str , Iterable [object ], object , None ]]
19
+ """(Optional) JSON Schema for tool inputs (MCP inputSchema)"""
20
+
41
21
metadata : Dict [str , Union [bool , float , str , Iterable [object ], object , None ]]
42
22
"""(Optional) Additional metadata about the tool"""
43
23
44
- parameters : Iterable [Parameter ]
45
- """(Optional) List of parameters this tool accepts"""
24
+ output_schema : Dict [str , Union [bool , float , str , Iterable [object ], object , None ]]
25
+ """(Optional) JSON Schema for tool outputs (MCP outputSchema)"""
26
+
27
+ toolgroup_id : str
28
+ """(Optional) ID of the tool group this tool belongs to"""
0 commit comments