prompt

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package prompt is a content-free helper for assembling multi-file system prompts. Each AIAgent (detect, analyze, …) embeds its own prompts/*.md fragments and calls Assemble / MustAssemble with the canonical ordering. The loader never reaches into another package's prompts — operators tune one agent without touching another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(fs embed.FS, order []string) (string, error)

Assemble reads the named files from fs in order and concatenates them with a blank-line separator. Missing files return an error (no silent skip).

func MustAssemble

func MustAssemble(fs embed.FS, order []string) string

MustAssemble is Assemble that panics on error. Intended for package-init wiring where a missing fragment is a programmer error (go:embed guarantees the files exist at build time, so a failure means the order slice drifted from the actual files on disk).

Types

This section is empty.

Jump to

Keyboard shortcuts

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