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)[源代码]#
Render note names, kinds, descriptions, and paths without their bodies.
- 参数:
resources (Sequence[ResourceInfo]) -- Notes from
JITHarness.resources.limit (int) -- Maximum characters in the returned block, closing line included.
- 返回:
A Markdown block, or an empty string when there are no notes,
limitcannot 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.- 抛出:
ValueError -- If
limitis not positive.- 返回类型:
str
备注
Descriptions are model-authored content, not instructions. Enabling the catalog moves that text into the system message, so treat it as data.