# `CommBus.Protocol.LlmCoreAdapter`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Default adapter that converts CommBus assemblies into llm_core-friendly packets.

# `assemble`
[🔗](https://github.com/fosferon/comm_bus/blob/v0.1.0/{path}#L{line})

Converts a CommBus assembly context into an llm_core-compatible protocol
packet. If the context has no assembly yet, runs `Assembler.assemble_prompt/3`
first. Sections are mapped to message roles and empty-content messages are
filtered out.

## Parameters

  - `context` — A `%CommBus.Protocol.Context{}` struct with conversation,
    entries, and optionally a pre-computed assembly.

## Returns

`{:ok, %CommBus.Protocol.Packet{}}` with messages, sections, included/excluded
entries, token usage, and adapter metadata.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
