ChatResult

ChatResult(
    chat_id: int = None,
    chat_history: list[dict[str, Any]] = None,
    summary: str = None,
    cost: dict[str, dict[str, Any]] = None,
    human_input: list[str] = None
)

(Experimental) The result of a chat. Almost certain to be changed.

Parameters:
NameDescription
chat_idType: int

Default: None
chat_historyType: list[dict[str, typing.Any]]

Default: None
summaryType: str

Default: None
costType: dict[str, dict[str, typing.Any]]

Default: None
human_inputType: list[str]

Default: None

Class Attributes

chat_history


The chat history.

chat_id


chat id

cost


The cost of the chat.
The value for each usage type is a dictionary containing cost information for that specific type.
- “usage_including_cached_inference”: Cost information on the total usage, including the tokens in cached inference.
- “usage_excluding_cached_inference”: Cost information on the usage of tokens, excluding the tokens in cache. No larger than “usage_including_cached_inference”.

human_input


A list of human input solicited during the chat.

summary


A summary obtained from the chat.