View Source ExOpenAI.Components.CompactResource (ex_openai.ex v2.0.0-beta2)

Module for representing the OpenAI schema CompactResource.

Fields

  • :created_at - required - integer()
    Unix timestamp (in seconds) when the compacted conversation was created.

  • :id - required - String.t()
    The unique identifier for the compacted response.

  • :object - required - :"response.compaction"
    The object type. Always response.compaction.
    Allowed values: "response.compaction"
    Default: "response.compaction"

  • :output - required - [ExOpenAI.Components.ItemField.t()]
    The compacted list of output items.

  • :usage - required - ExOpenAI.Components.ResponseUsage.t()
    Token accounting for the compaction pass, including cached, reasoning, and total tokens.

Summary

Types

@type t() :: %ExOpenAI.Components.CompactResource{
  created_at: integer(),
  id: String.t(),
  object: :"response.compaction",
  output: [ExOpenAI.Components.ItemField.t()],
  usage: ExOpenAI.Components.ResponseUsage.t()
}