Skip to content

Add llmxml markup builder - #25

Merged
xobotyi merged 1 commit into
mainfrom
feat/llmxml
Jul 10, 2026
Merged

Add llmxml markup builder#25
xobotyi merged 1 commit into
mainfrom
feat/llmxml

Conversation

@xobotyi

@xobotyi xobotyi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

The llmxml package per ADR 1.3: line-structured XML-subset renderer for tool output. Single-pass string construction — no parser, no schema, no indentation, no body-text escaping; attribute values quoted via strconv.Quote. One-shot content setters panic on reuse.

Design note: the attribute type is exported (Attribute) rather than an unexported opaque token — avoids a revive/nolintlint suppression deadlock and lets callers declare []llmxml.Attribute.

Adds stretchr/testify (v1.11.1, latest) as the repo's testing framework.

Closes #2

Line-structured XML-subset renderer for tool output: single-pass string
construction, no parser, no indentation, no escaping of body text;
attribute values quoted via strconv.Quote. Content setters are one-shot
and panic on reuse.

Adds testify as the repository's testing framework.

Refs: #2
See: design-docs/adr/1.3-llmxml-output.md
@xobotyi
xobotyi merged commit 72170fe into main Jul 10, 2026
4 checks passed
@xobotyi
xobotyi deleted the feat/llmxml branch July 10, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement llmxml builder package

1 participant