prompt

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SystemPrompt = `` /* 7041-byte string literal not displayed */

SystemPrompt is the main system prompt for XELYON agent.

Variables

This section is empty.

Functions

func BuildGitHubMCPGuide

func BuildGitHubMCPGuide() string

BuildGitHubMCPGuide generates the GitHub MCP usage guide.

func BuildLSPToolsPrompt

func BuildLSPToolsPrompt() string

BuildLSPToolsPrompt generates the LSP tools description for the system prompt.

func BuildMCPToolsPrompt

func BuildMCPToolsPrompt(tools []MCPTool) string

BuildMCPToolsPrompt generates the MCP tools section for the system prompt.

func BuildSummaryPrompt

func BuildSummaryPrompt(messages []Message, truncateLen int) string

BuildSummaryPrompt はサマリー生成用のプロンプトを構築する。 truncateLen は各メッセージの最大長(超過分は省略)。

func SanitizeToolName

func SanitizeToolName(name string) string

SanitizeToolName removes special characters from tool names.

Types

type MCPTool

type MCPTool struct {
	ServerName  string
	Name        string
	Description string
}

MCPTool represents an MCP tool for prompt generation. This is a simplified struct to avoid circular imports with internal/mcp.

type Message

type Message struct {
	Role    string
	Content string
}

Message represents a conversation message for summary generation. This is a simplified struct to avoid importing api package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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