Modules
Conversational context assembly for LLM interactions.
Prompt assembly with injected context.
Token budget management.
Simple helper for deriving section budgets and completion allowances.
High-level planning utilities for CommBus assemblies.
Represents a reason an entry was dropped from the plan.
Structured plan returned by CommBus.Context.plan/3.
Conversation session state.
Injectable context entry.
Keyword, fuzzy, and semantic matching for triggered entries with diagnostics.
Match diagnostics for a given entry.
Conversation message.
Curated methodology catalog for reusable prompt packs.
Structured methodology definition containing curated CommBus entries.
Prompt catalog with optional overrides and cached runtime loading.
Prompt override store behavior.
In-memory override store for testing and local usage.
Behaviour for translating CommBus assemblies into downstream packets.
Execution context shared across CommBus protocol adapters.
Default adapter that converts CommBus assemblies into llm_core-friendly packets.
Canonical payload produced by CommBus protocol adapters.
ALF pipeline that assembles a conversation and adapts it into a protocol packet.
Internal state threaded through each ALF pipeline stage, carrying the protocol context, the chosen adapter module, and the accumulated result.
Registry for mapping CommBus sections (e.g., :system, :pre_history) to downstream message roles understood by provider pipelines.
Validates assembled protocol packets before they are forwarded to downstream routers.
Helper for retrieving the configured semantic adapter.
Behaviour for semantic similarity adapters used by CommBus.Matcher. Implementations should return a similarity score between 0.0 and 1.0.
Default semantic adapter that scores similarity using token overlap (Jaccard index).
Behaviour for conversation persistence.
Default Ecto-backed storage adapter for CommBus.
Default Ecto schema used by CommBus.Storage.Ecto for persisting conversations.
Default Ecto schema used by CommBus.Storage.Ecto for persisting entries.
Generic helper that persists CommBus entries and conversations using any Ecto repo.
Behaviour for entry persistence.
Lightweight ETS-backed storage adapter implementing both CommBus storage behaviours.
Helper functions for adding CommBus tables to your Ecto migrations.
Helpers for consuming CommBus telemetry events and defining common metrics.
Template rendering facade.
Template engine behavior.
bbmustache-based template engine.
ExMustache-based template engine.
Prompt template loader with YAML frontmatter.
Prompt template definition.
Encapsulates the rendering context passed to template engines, including variable bindings, partial templates, and strict-mode configuration.
Exception raised or returned when a template render fails. Carries the
failure :type (e.g. :render_failed, :type_coercion_failed,
:max_depth_exceeded), a human-readable :message, and optional
:template_name and :variable_name for diagnostics.
Holds the output of a successful template render, including the rendered content string, lists of variables that were used, defaulted, or provided, any partials that were loaded, and the wall-clock render time.
Validates prompt frontmatter and variable consistency.
Token counting façade with pluggable backends.
Fallback tokenizer using a heuristic character/word based approximation.
Mix Tasks
Run CommBus planning locally using YAML fixtures for conversations and entries.
Syncs prompt files from external project directories into test fixtures.