goalloop

package
v0.107.6-beta.13 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package goalloop holds the session-goal rules shared by the TUI and the backend: the continuation prompt sent after each turn, the GOAL_MET completion check, and the round limit resolution.

Index

Constants

View Source
const MetToken = "GOAL_MET"

MetToken is the literal a reply must lead with to declare the goal accomplished.

Variables

This section is empty.

Functions

func ContinuePrompt

func ContinuePrompt(goal string) string

ContinuePrompt is the user turn submitted after every unfinished round.

func MaxRounds

func MaxRounds(dir string, global int) int

MaxRounds resolves the continuation limit: a project override for dir wins over the global config value, which wins over the built-in default.

func Met

func Met(final string) bool

Met reports whether a final reply declares the goal accomplished. As the continuation prompt demands, the reply must lead with the token: only whitespace and Markdown emphasis, heading, quote or code markers may precede it, and it must end at a word boundary. A mention later in the reply ("not GOAL_MET yet") never counts.

Types

This section is empty.

Jump to

Keyboard shortcuts

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