prompt

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Suggestion = `` /* 1138-byte string literal not displayed */

Variables

This section is empty.

Functions

func ExploreAgent

func ExploreAgent(cwd string) string

func GeneralAgent

func GeneralAgent(cwd string) string

func PlanAgent

func PlanAgent(cwd string) string

func System

func System(cwd string) string

System never lists the tools: their specs describe them.

Types

type Part

type Part struct {
	Key   string // stable for the whole conversation
	Title string
	Body  string
}

Part is context outside the system prompt. Each part is sent as its own message and resent when it changes, so a change appends to the request instead of rewriting earlier messages.

func DeferredTools

func DeferredTools(names []string) Part

func Environment

func Environment(cwd string, now time.Time) Part

func Git

func Git(cwd string) Part

Git snapshots the repository containing cwd; the body is empty outside a repository.

func MCP

func MCP(instructions string) Part

func Memory

func Memory(cwd string) Part

func Project

func Project(cwd string) Part

func Skills

func Skills(listing string) Part

func (Part) Text

func (p Part) Text() string

Text renders an empty part as "None.", which retracts what it said before.

Jump to

Keyboard shortcuts

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