render_note_catalog#

Let a model keep its own tools and notes in a repository on disk. See the guide.

zett_agent.jit_harness.extension.render_note_catalog(resources, *, limit=4000)[source]#

Render note names, kinds, descriptions, and paths without their bodies.

Parameters:
  • resources (Sequence[ResourceInfo]) – Notes from JITHarness.resources.

  • limit (int) – Maximum characters in the returned block, closing line included.

Returns:

A Markdown block, or an empty string when there are no notes, limit cannot hold the heading, no entry fits, or the entry that fits leaves no room for the closing line. The renderer drops whole entries rather than silently truncating one note’s description.

Raises:

ValueError – If limit is not positive.

Return type:

str

Note

Descriptions are model-authored content, not instructions. Enabling the catalog moves that text into the system message, so treat it as data.