LettaAPI.Model.Passage (letta_api v1.0.0)

Representation of a passage, which is stored in archival memory. Parameters: text (str): The text of the passage. embedding (List[float]): The embedding of the passage. embedding_config (EmbeddingConfig): The embedding configuration used by the passage. created_at (datetime): The creation date of the passage. user_id (str): The unique identifier of the user associated with the passage. agent_id (str): The unique identifier of the agent associated with the passage. source_id (str): The data source of the passage. file_id (str): The unique identifier of the file associated with the passage.

Summary

Types

t()

@type t() :: %LettaAPI.Model.Passage{
  agent_id: String.t() | nil,
  created_at: DateTime.t() | nil,
  created_by_id: String.t() | nil,
  embedding: [number()] | nil,
  embedding_config: LettaAPI.Model.EmbeddingConfig.t() | nil,
  file_id: String.t() | nil,
  id: String.t() | nil,
  is_deleted: boolean() | nil,
  last_updated_by_id: String.t() | nil,
  metadata: %{optional(String.t()) => any()} | nil,
  organization_id: String.t() | nil,
  source_id: String.t() | nil,
  text: String.t(),
  updated_at: DateTime.t() | nil
}

Functions

decode(value)