agentprompt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCwdAgentsContext

func AppendCwdAgentsContext(basePrompt, agentsText string) string

func AppendCwdAgentsPathInstruction

func AppendCwdAgentsPathInstruction(basePrompt, agentsPath string) string

func BuildSystemPrompt

func BuildSystemPrompt(basePrompt, cwdAgents string, availableSkills, selectedSkills []SkillContext, selectedSkillContext map[string]any) string

func BuildSystemPromptWithCwdAgentsPath

func BuildSystemPromptWithCwdAgentsPath(basePrompt, cwdAgentsPath string, availableSkills, selectedSkills []SkillContext, selectedSkillContext map[string]any) string

func ExpandPlatformVariables

func ExpandPlatformVariables(prompt, platform string) string

func ExpandVariables

func ExpandVariables(prompt string, vars Variables) string

func ExtractMarkdownBody

func ExtractMarkdownBody(content string) string

func LoadMarkdownBody

func LoadMarkdownBody(path string) (string, error)

func ReadCwdAgentsContext

func ReadCwdAgentsContext(cwd string) (string, error)

func ResolveCwdAgentsPath

func ResolveCwdAgentsPath(cwd string) (string, error)

Types

type SkillContext

type SkillContext struct {
	ID          string
	Slug        string
	Name        string
	Description string
	SkillFile   string
	SkillDir    string
}

type Variables

type Variables struct {
	Platform  string
	AgentRoot string
	AgentHome string
}

Jump to

Keyboard shortcuts

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