Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render formats the pack according to the requested format ("markdown", "xml", "json", "compact").
func RenderCompact ¶ added in v2.3.10
RenderCompact formats the pack into an ultra-dense, token-budgeted representation. It prioritizes critical directives/rules, gotchas/bugfixes, architectural decisions, and core God Nodes, truncating gracefully when the estimated token budget is reached. If maxTokens <= 0, a default budget of 1500 tokens is used.
func RenderJSON ¶
RenderJSON serializes the Pack into indented JSON.
func RenderMarkdown ¶
RenderMarkdown produces human-and-agent readable Markdown.
Types ¶
type Options ¶
type Options struct {
Project string
Format string // "markdown", "xml", "json", "compact" (default "markdown")
MaxDecisions int // default 5
MaxBugfixes int // default 5
MaxGodNodes int // default 5
IncludeRules bool // default true
IncludeRepoMap bool // default false
RepoMapBudget int // default 1024
MaxTokens int // token budget for compact rendering (default 1500)
}
Options specifies criteria for building an agent context pack.
type Pack ¶
type Pack struct {
Project string `json:"project"`
Rules []*domain.Observation `json:"rules,omitempty"`
Decisions []*domain.Observation `json:"decisions,omitempty"`
Bugfixes []*domain.Observation `json:"bugfixes,omitempty"`
GodNodes []code.GodNode `json:"god_nodes,omitempty"`
RepoMap string `json:"repo_map,omitempty"`
}
Pack represents the assembled intelligence packet for an AI agent.