export

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package export renders a parsed Context document into agent-specific formats.

Index

Constants

This section is empty.

Variables

View Source
var All = []Format{
	{"yaml", "CONTEXT.yaml", "Canonical CONTEXT.yaml (re-serialized)"},
	{"xml", "context.xml", "Token-efficient XML for LLM injection"},
	{"json", "context.json", "Structured JSON"},
}

All supported formats in display order.

Functions

func Render

func Render(format string, doc *schema.Context) (string, error)

Render converts doc to the named format. Returns an error for unknown formats.

Types

type Format

type Format struct {
	Name     string
	Filename string
	Desc     string
}

Format describes a supported output format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL