Cohere.Map.Renderer (Cohere v0.1.0)

Copy Markdown View Source

Renders a Cohere.Map to markdown.

Format goals, in priority order: deterministic (stable ordering, no timestamps — regeneration without code change is a no-op diff), sliceable (one line per fact, so a context's slice can be cut out for a work packet), and compact (an agent should be able to swallow a whole context entry without ceremony).

Summary

Functions

Renders the whole map.

Renders a single context group (used for map slices in work packets).

Functions

render(map)

@spec render(Cohere.Map.t()) :: String.t()

Renders the whole map.

render_group(map, group)

Renders a single context group (used for map slices in work packets).