prompt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package prompt is the Stage-1 namespace for prompt-construction and prompt-optimisation types in package engine. See ../REFACTOR_PLAN.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ABTest

type ABTest = engine.ABTest

ABTest pits two prompt variants against each other on incoming traffic.

func NewABTest

func NewABTest(a, b DSPyVariant) *ABTest

NewABTest builds an A/B test between two variants.

type DSPyExample

type DSPyExample = engine.DSPyExample

DSPyExample is one (input, output) demonstration backing the optimizer.

type DSPyVariant

type DSPyVariant = engine.DSPyVariant

DSPyVariant is a candidate prompt being evaluated.

type Optimizer

type Optimizer = engine.PromptOptimizer

Optimizer learns better prompts via DSPy-style example mining.

func NewOptimizer

func NewOptimizer() *Optimizer

NewOptimizer returns a fresh prompt optimizer.

type Tuner

type Tuner = engine.PromptTuner

Tuner is a lighter-weight prompt-tuning helper for online adjustments.

func NewTuner

func NewTuner() *Tuner

NewTuner returns a fresh prompt tuner.

type Variant

type Variant = engine.PromptVariant

Variant is a tuned prompt the Tuner emits.

Jump to

Keyboard shortcuts

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