prompt

package
v0.20260526.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EffectiveShell

func EffectiveShell() string

func LegacyOnlyToolInvocationSyntax added in v0.20260523.0

func LegacyOnlyToolInvocationSyntax(planMode bool) string

func LegacyToolInvocationSyntaxAppend

func LegacyToolInvocationSyntaxAppend(planMode bool) string

func NativeToolInvocationSyntax

func NativeToolInvocationSyntax(legacyFallbackEnabled bool) string

func RenderBuild

func RenderBuild(d Data) (string, error)

func RenderPlan

func RenderPlan(d Data) (string, error)

func RenderSummarize

func RenderSummarize(d SummarizeData) (string, error)

func RenderSummarizeSystem

func RenderSummarizeSystem(d SummarizeData) (string, error)

func RenderTitle

func RenderTitle(d TitleData) (string, error)

func SummarizeSystemFallback

func SummarizeSystemFallback() string

func SystemWithNoThink

func SystemWithNoThink(disableThinking bool, content string) string

func ToolInvocationSyntaxSection added in v0.20260523.0

func ToolInvocationSyntaxSection(legacyEnabled, legacyForced, planMode bool) string

Types

type Data

type Data struct {
	Tools                 string
	Syntax                string
	LegacySyntax          string
	LegacyToolsEnabled    bool
	LegacyToolsForced     bool
	ExtraRules            string
	CustomRules           string
	GlobalInstructions    string
	RepoInstructions      string
	Language              string
	UserName              string
	DisableThinking       bool
	SystemOS              string
	SystemBits            string
	SystemCPUFamily       string
	SystemGOARCH          string
	WorkspaceAbsolutePath string
	Shell                 string
	LocalDateTime         string
}

type SummarizeData

type SummarizeData struct {
	Transcript      string
	DisableThinking bool
}

type TitleData

type TitleData struct {
	Language        string
	DisableThinking bool
}

Jump to

Keyboard shortcuts

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