main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import List
 4from typing_extensions import Literal
 5
 6from ..._models import BaseModel
 7from .response_usage import ResponseUsage
 8from .response_output_item import ResponseOutputItem
 9
10__all__ = ["CompactedResponse"]
11
12
13class CompactedResponse(BaseModel):
14    id: str
15    """The unique identifier for the compacted response."""
16
17    created_at: int
18    """Unix timestamp (in seconds) when the compacted conversation was created."""
19
20    object: Literal["response.compaction"]
21    """The object type. Always `response.compaction`."""
22
23    output: List[ResponseOutputItem]
24    """The compacted list of output items.
25
26    This is a list of all user messages, followed by a single compaction item.
27    """
28
29    usage: ResponseUsage
30    """
31    Token accounting for the compaction pass, including cached, reasoning, and total
32    tokens.
33    """