Supported Types
Basic Types
| Python Type | JSON Schema | Example |
|---|---|---|
str | {"type": "string"} | "hello" |
int | {"type": "integer"} | 42 |
float | {"type": "number"} | 3.14 |
bool | {"type": "boolean"} | true |
Complex Types
| Python Type | JSON Schema | Example |
|---|---|---|
list | {"type": "array"} | [1, 2, 3] |
dict | {"type": "object"} | {"key": "value"} |
Optional[T] | Same as T | None or value |
Tool Type Examples
String Parameter
Optional Parameter
Return Types
Tools should returndict: