LLM.Context (LLM v0.1.0)

Copy Markdown View Source

Request context: system prompt, messages, and tools.

Summary

Functions

Create a context from a string, list of messages, keyword list, or map.

Types

t()

@type t() :: %LLM.Context{
  messages: [LLM.Message.t()],
  system: String.t() | nil,
  tools: [LLM.Tool.t() | module()]
}

Functions

new(input)

Create a context from a string, list of messages, keyword list, or map.