mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
1.0 KiB
1.0 KiB
Tool
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| annotations | ToolAnnotations | [optional] | |
| description | str | [optional] | |
| icons | List[Icon] | [optional] | |
| input_schema | Dict[str, object] | ||
| name | str | ||
| output_schema | Dict[str, object] | [optional] | |
| title | str | [optional] |
Example
from goose_api.models.tool import Tool
# TODO update the JSON string below
json = "{}"
# create an instance of Tool from a JSON string
tool_instance = Tool.from_json(json)
# print the JSON string representation of the object
print(Tool.to_json())
# convert the object into a dict
tool_dict = tool_instance.to_dict()
# create an instance of Tool from a dict
tool_from_dict = Tool.from_dict(tool_dict)