prompt

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

SystemPrompt is the main system prompt for XELYON agent.

構造: - ## Available Tools: ツール定義(Function Calling で削除される) - ## Workflow Rules: 使い方・ルール(削除されない) - MCP: 別ファイルで後から追加(削除されない) - LSP: Workflow Rules に統合(Rule 2: Code Navigation)

新しい指示を追加する時: - ツール定義 → Available Tools に書く - 使い方・ルール → Workflow Rules に書く

Variables

This section is empty.

Functions

func BuildGitHubMCPGuide

func BuildGitHubMCPGuide() string

BuildGitHubMCPGuide generates the GitHub MCP usage guide.

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 BuildSystemPrompt added in v0.46.0

func BuildSystemPrompt(basePrompt string, planModeEnabled bool) string

BuildSystemPrompt はシステムプロンプトを構築 planModeEnabled が true の場合、Planning Tools のガイドラインを追加

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