prompt

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

Template represents a compiled Prompt Engineering template.

func NewTemplate

func NewTemplate(name, text string) (*Template, error)

NewTemplate creates a new prompt template.

func (*Template) Render

func (t *Template) Render(vars map[string]interface{}) (string, error)

Render executes the prompt template with context variables.

Jump to

Keyboard shortcuts

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