struct

Engram::EmbedderConfig

Inherits Struct < Value < Object

The embedder: settings read from .agents/engram.yml:

embedder: url: http://localhost:11434/v1/embeddings model: nomic-embed-text api_key_env: OPENAI_API_KEY

No config file, or a config file with no embedder: section, means embeddings are off — the zero-config default described in docs/SPEC.md.

Constructors

new(url : String, model : String, api_key_env : String | Nil = nil)

Builds a config from already-known fields (used directly by specs).

Source

Class methods

load(path : String) : EmbedderConfig | Nil

Loads and parses path, returning nil if the file is absent or has no embedder: section.

Source

Instance methods

api_key

Resolves the actual API key by reading the env var named by api_key_env; nil if unset or unnamed.

Source
api_key_env
Source
model
Source