prompt

package
v0.20260521.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 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 LegacyToolInvocationSyntaxAppend

func LegacyToolInvocationSyntaxAppend() 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

Types

type Data

type Data struct {
	Tools                 string
	Syntax                string
	LegacySyntax          string
	ExtraRules            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