mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
1.6 KiB
1.6 KiB
Session
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| accumulated_input_tokens | int | [optional] | |
| accumulated_output_tokens | int | [optional] | |
| accumulated_total_tokens | int | [optional] | |
| conversation | List[Message] | [optional] | |
| created_at | datetime | ||
| description | str | ||
| extension_data | Dict[str, object] | Extension data containing all extension states Keys are in format "extension_name.version" (e.g., "todo.v0") | |
| id | str | ||
| input_tokens | int | [optional] | |
| message_count | int | ||
| output_tokens | int | [optional] | |
| recipe | Recipe | [optional] | |
| schedule_id | str | [optional] | |
| total_tokens | int | [optional] | |
| updated_at | datetime | ||
| working_dir | str |
Example
from goose_api.models.session import Session
# TODO update the JSON string below
json = "{}"
# create an instance of Session from a JSON string
session_instance = Session.from_json(json)
# print the JSON string representation of the object
print(Session.to_json())
# convert the object into a dict
session_dict = session_instance.to_dict()
# create an instance of Session from a dict
session_from_dict = Session.from_dict(session_dict)