embedded

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

README

Embedded Assets

This package contains files that are embedded into the loom binaries using Go's //go:embed directive. This ensures critical configuration files are always available, even when the binary is distributed separately from the source tree.

Files

  • weaver.yaml: Default meta-agent configuration that orchestrates other agents and manages complex workflows

Usage

import "github.com/teradata-labs/loom/embedded"

// Get the embedded weaver.yaml content
weaverConfig := embedded.GetWeaver()

Adding New Embedded Files

  1. Copy the file to this directory
  2. Add an embed directive in agents.go:
    //go:embed myfile.yaml
    var MyFileYAML []byte
    
  3. Add a getter function
  4. Add tests in agents_test.go

Why Embed?

When looms serve runs on a fresh install (or a packaged binary), it needs access to default agent configurations. By embedding these files:

  • Users get a working setup immediately after binary installation
  • No need to distribute the entire source tree with the binary
  • Consistent experience across development and production environments

Note on Paths

Go's //go:embed directive requires paths relative to the source file and cannot use .. to navigate up. That's why files are copied into this directory at the module root rather than referenced from examples/.

Documentation

Overview

Package embedded provides access to files embedded into the loom binary. This ensures critical configuration files are always available, even when the binary is distributed separately from the source tree.

Index

Constants

This section is empty.

Variables

View Source
var WeaverYAML []byte

WeaverYAML contains the default weaver agent configuration. Weaver is the meta-agent that orchestrates other agents and manages complex workflows.

Functions

func GetStartHere

func GetStartHere() []byte

GetStartHere returns the base ROM (START_HERE.md) content. This delegates to pkg/agent/rom_loader.go which is the single source of truth for ROM files. The ROM is embedded from pkg/agent/roms/START_HERE.md at compile time.

func GetWeaver

func GetWeaver() []byte

GetWeaver returns the embedded weaver.yaml content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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