mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
1.1 KiB
1.1 KiB
Content
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| meta | Dict[str, object] | [optional] | |
| text | str | ||
| data | str | ||
| mime_type | str | ||
| resource | ResourceContents | ||
| description | str | [optional] | |
| icons | List[Icon] | [optional] | |
| name | str | ||
| size | int | [optional] | |
| title | str | [optional] | |
| uri | str |
Example
from goose_api.models.content import Content
# TODO update the JSON string below
json = "{}"
# create an instance of Content from a JSON string
content_instance = Content.from_json(json)
# print the JSON string representation of the object
print(Content.to_json())
# convert the object into a dict
content_dict = content_instance.to_dict()
# create an instance of Content from a dict
content_from_dict = Content.from_dict(content_dict)