class

OpenAI::CompactionBody

Inherits JSON::Serializable < Reference < Object

A compaction item generated by the v1/responses/compact API.

Constructors

new(type_value : CompactionBodyType = CompactionBodyType::Compaction, id : String = "", encrypted_content : String = "", created_by : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_by
Source
created_by=(created_by : String | Nil)
Source
encrypted_content
Source
encrypted_content=(encrypted_content : String)
Source
id

The unique ID of the compaction item.

Source
id=(id : String)

The unique ID of the compaction item.

Source
type_value

The type of the item. Always compaction.

Source
type_value=(type_value : CompactionBodyType)

The type of the item. Always compaction.

Source