context

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package context provides functionality for compiling AI context from the graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Compiler handles the compilation of nodes into a textual context for AI consumption.

func NewCompiler

func NewCompiler(store contracts.Store) *Compiler

NewCompiler creates a new context compiler.

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, symbolID string) (string, error)

Compile generates a markdown representation of a symbol and its relationships.

func (*Compiler) CompileWithBudget added in v0.1.8

func (c *Compiler) CompileWithBudget(ctx context.Context, symbolID string, budget int) (string, error)

CompileWithBudget generates a markdown representation of a symbol and its relationships, attempting to stay within the character budget.

Jump to

Keyboard shortcuts

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