sysprompt

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package sysprompt composes relay-owned durable system prompt text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(base, extra, catalog string) string

Compose joins the base relay prompt, optional operator extra text, and optional skills catalog. Empty pieces are skipped and pieces are separated by a blank line.

func LivenessNote added in v0.20.0

func LivenessNote(window time.Duration) string

LivenessNote renders the turn-watchdog disclosure for the agent's system prompt from the live window, so the text can never drift from the knob the relay actually arms (client.TurnLivenessConfig.NoProgressTimeout). A window <=0 renders the same default StartTurnLiveness falls back to.

The wording is deliberately minimal; callers append it to a composed prompt.

func Resolve

func Resolve(base, extra string, disabled bool, catalog string) string

Resolve returns an empty prompt when disabled, otherwise Compose(base, extra, catalog).

Types

This section is empty.

Jump to

Keyboard shortcuts

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