prompt

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader) (llm.Prompt, error)

Read parses a markdown file with optional YAML front matter from r and returns an llm.Prompt. The name is taken from the front matter or derived from the reader's filename. The template is set from the markdown body.

func WithNamespace

func WithNamespace(namespace string, p llm.Prompt) llm.Prompt

WithNamespace returns p with its name replaced by "namespace.p.Name()".

Types

This section is empty.

Jump to

Keyboard shortcuts

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