View Source ExOpenAI.Components.ThreadObject (ex_openai.ex v2.0.0-beta2)
Represents a thread that contains messages.
Fields
:created_at- required -integer()
The Unix timestamp (in seconds) for when the thread was created.:id- required -String.t()
The identifier, which can be referenced in API endpoints.:metadata- required -ExOpenAI.Components.Metadata.t():object- required -:thread
The object type, which is alwaysthread.
Allowed values:"thread":tool_resources- required -{:%{}, [], [{{:optional, [], [:code_interpreter]}, {:%{}, [], [{{:optional, [], [:file_ids]}, {:list, [], [{{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}]}}]}}, {{:optional, [], [:file_search]}, {:%{}, [], [{{:optional, [], [:vector_store_ids]}, {:list, [], [{{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}]}}]}}]} | any()
Summary
Types
@type t() :: %ExOpenAI.Components.ThreadObject{ created_at: integer(), id: String.t(), metadata: ExOpenAI.Components.Metadata.t(), object: :thread, tool_resources: %{ optional(:code_interpreter) => %{optional(:file_ids) => [String.t()]}, optional(:file_search) => %{optional(:vector_store_ids) => [String.t()]} } | any() }