MistralClient.Models.File (mistralex_ai v0.1.0)

View Source

Represents file metadata.

Summary

Functions

Create a file from a map.

Types

t()

@type t() :: %MistralClient.Models.File{
  bytes: integer(),
  created_at: integer(),
  filename: String.t(),
  id: String.t(),
  num_lines: integer() | nil,
  object: String.t(),
  purpose: String.t(),
  sample_type: String.t() | nil,
  source: String.t() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create a file from a map.