This repository was archived by the owner on Apr 29, 2025. It is now read-only.
File tree 3 files changed +31
-1
lines changed
3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [SimpleTool](https://github.com/nchekwa/simpletool-p
10
10
11
11
### Added
12
12
- Make SimpleTool picklable by only serializing essential attributes
13
+ - add output_schema in info property
13
14
14
15
## [ 0.0.18] - 2025-01-13 Milestone Alpha2
15
16
Original file line number Diff line number Diff line change @@ -363,7 +363,8 @@ def info(self) -> str:
363
363
return json .dumps ({
364
364
"name" : self .name ,
365
365
"description" : self .description ,
366
- "input_schema" : sorted_input_schema
366
+ "input_schema" : sorted_input_schema ,
367
+ "output_schema" : self .output_schema
367
368
}, indent = 4 )
368
369
369
370
@property
Original file line number Diff line number Diff line change @@ -22,6 +22,34 @@ Type: <class 'str'>
22
22
"required": [
23
23
"text"
24
24
]
25
+ },
26
+ "output_schema": {
27
+ "type": "array",
28
+ "items": {
29
+ "oneOf": [
30
+ {
31
+ "additionalProperties": true,
32
+ "description": "Text content for a message.",
33
+ "properties": {
34
+ "type": {
35
+ "const": "text",
36
+ "default": "text",
37
+ "title": "Type",
38
+ "type": "string"
39
+ },
40
+ "text": {
41
+ "title": "Text",
42
+ "type": "string"
43
+ }
44
+ },
45
+ "required": [
46
+ "text"
47
+ ],
48
+ "title": "TextContent",
49
+ "type": "object"
50
+ }
51
+ ]
52
+ }
25
53
}
26
54
}
27
55
You can’t perform that action at this time.
0 commit comments