Eai.Chat.Context (eai v1.0.4)

Copy Markdown

Carries all LLM hyper-parameters through the interactive / function-mode call chain. Every field defaults to nil (absent → fall back to model config → omit from HTTP body).

Summary

Types

t()

Structure carrying a chat request and its options.

Types

t()

@type t() :: %Eai.Chat.Context{
  anthropic_beta_opt: term() | nil,
  chara_card_opt: term() | nil,
  chat_session: String.t() | nil,
  frequency_penalty_opt: number() | nil,
  max_tokens_opt: pos_integer() | nil,
  message: String.t() | nil,
  min_p_opt: number() | nil,
  model_opt: term() | nil,
  presence_penalty_opt: number() | nil,
  prompt_opt: term() | nil,
  pty_session: String.t() | nil,
  repetition_penalty_opt: number() | nil,
  seed_opt: integer() | nil,
  stop_sequences_opt: [String.t()] | nil,
  temperature_opt: number() | nil,
  timeout: timeout() | nil,
  top_k_opt: pos_integer() | nil,
  top_p_opt: number() | nil
}

Structure carrying a chat request and its options.