ExLLM.Session.Types (ex_llm v0.5.0)

View Source

Type definitions for ExLLM.Session.

Summary

Types

context()

@type context() :: %{optional(atom()) => any()}

message()

@type message() :: %{
  :role => String.t(),
  :content => String.t(),
  optional(:timestamp) => DateTime.t(),
  optional(atom()) => any()
}

token_usage()

@type token_usage() :: %{
  input_tokens: non_neg_integer(),
  output_tokens: non_neg_integer()
}