PromptVault.Context (PromptVault v0.1.0)

View Source

The core immutable context structure for PromptVault.

A Context holds all the state needed for managing LLM prompts including messages, model configuration, token counting, and compaction strategies.

Summary

Types

compaction_strategy()

@type compaction_strategy() :: module() | {module(), keyword()}

message()

@type message() :: PromptVault.Message.t()

t()

@opaque t()

token_counter()

@type token_counter() :: module()