View Source ExOpenAI.Components.CreateThreadRequest (ex_openai.ex v1.7.0)

Schema representing a CreateThreadRequest within the OpenAI API

Summary

Types

@type t() :: %ExOpenAI.Components.CreateThreadRequest{
  messages: [ExOpenAI.Components.CreateMessageRequest.t()] | nil,
  metadata: map() | nil,
  tool_resources:
    %{
      code_interpreter: %{file_ids: [String.t()]},
      file_search: %{
        vector_store_ids: [String.t()],
        vector_stores: [
          %{
            chunking_strategy:
              %{
                static: %{
                  chunk_overlap_tokens: integer(),
                  max_chunk_size_tokens: integer()
                },
                type: :static
              }
              | %{type: :auto},
            file_ids: [String.t()],
            metadata: map()
          }
        ]
      }
    }
    | nil
}