View Source OpenAi.Assistant (OpenAI REST API Client v1.0.1)

Provides struct and type for a Assistant

Summary

Types

@type t() :: %OpenAi.Assistant{
  created_at: integer(),
  description: String.t() | nil,
  id: String.t(),
  instructions: String.t() | nil,
  metadata: map(),
  model: String.t(),
  name: String.t() | nil,
  object: String.t(),
  response_format:
    OpenAi.Response.Format.Json.t()
    | OpenAi.Response.Format.JsonSchema.t()
    | OpenAi.Response.Format.Text.t()
    | String.t()
    | nil,
  temperature: number() | nil,
  tool_resources: OpenAi.Assistant.Tool.Resources.t() | nil,
  tools: [
    OpenAi.Assistant.Tool.Code.t()
    | OpenAi.Assistant.Tool.FileSearch.t()
    | OpenAi.Assistant.Tool.Function.t()
  ],
  top_p: number() | nil
}