Emits repository-attributed telemetry around model adapter calls.
Summary
Functions
Invokes an LLM chat call with optional repository-attributed telemetry.
Invokes a structured LLM chat call with optional repository-attributed telemetry.
Invokes one embedding call with optional repository-attributed telemetry.
Invokes a batched embedding call with optional repository-attributed telemetry.
Functions
@spec chat( Mnemosyne.ModelCall.Context.t() | nil, module(), atom(), [Mnemosyne.LLM.message()], keyword() ) :: {:ok, Mnemosyne.LLM.Response.t()} | {:error, term()}
Invokes an LLM chat call with optional repository-attributed telemetry.
@spec chat_structured( Mnemosyne.ModelCall.Context.t() | nil, module(), atom(), [Mnemosyne.LLM.message()], term(), keyword() ) :: {:ok, Mnemosyne.LLM.Response.t()} | {:error, term()}
Invokes a structured LLM chat call with optional repository-attributed telemetry.
@spec embed( Mnemosyne.ModelCall.Context.t() | nil, module(), atom(), String.t(), keyword() ) :: {:ok, Mnemosyne.Embedding.Response.t()} | {:error, term()}
Invokes one embedding call with optional repository-attributed telemetry.
@spec embed_batch( Mnemosyne.ModelCall.Context.t() | nil, module(), atom(), [String.t()], keyword() ) :: {:ok, Mnemosyne.Embedding.Response.t()} | {:error, term()}
Invokes a batched embedding call with optional repository-attributed telemetry.