mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
990 B
990 B
SessionInsights
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| total_sessions | int | Total number of sessions | |
| total_tokens | int | Total tokens used across all sessions |
Example
from goose_api.models.session_insights import SessionInsights
# TODO update the JSON string below
json = "{}"
# create an instance of SessionInsights from a JSON string
session_insights_instance = SessionInsights.from_json(json)
# print the JSON string representation of the object
print(SessionInsights.to_json())
# convert the object into a dict
session_insights_dict = session_insights_instance.to_dict()
# create an instance of SessionInsights from a dict
session_insights_from_dict = SessionInsights.from_dict(session_insights_dict)