Documentation
¶
Index ¶
Constants ¶
const ToolPrefix = "llm_semantic_"
ToolPrefix is the prefix for all llm-semantic tools
Variables ¶
var BinaryPath = "llm-semantic"
BinaryPath is the path to the llm-semantic binary Defaults to "llm-semantic" (PATH lookup), falls back to /usr/local/bin
var CommandTimeout = 120 * time.Second
CommandTimeout is the default timeout for command execution Increased to 120s for index/update operations which can be slow Can be overridden via LLM_SEMANTIC_TIMEOUT env var (in seconds)
Functions ¶
func ExecuteHandler ¶
ExecuteHandler executes the appropriate command for a tool
func RegisteredCommands ¶ added in v1.6.0
func RegisteredCommands() []string
RegisteredCommands returns a list of all registered command names. Useful for testing and documentation.
Types ¶
type Config ¶ added in v1.6.0
type Config struct {
Semantic SemanticConfig `yaml:"semantic"`
}
Config represents the root config.yaml structure
type SemanticConfig ¶ added in v1.6.0
type SemanticConfig struct {
CodeCollection string `yaml:"code_collection"`
CodeStorage string `yaml:"code_storage"`
DocsCollection string `yaml:"docs_collection"`
DocsStorage string `yaml:"docs_storage"`
MemoryCollection string `yaml:"memory_collection"`
MemoryStorage string `yaml:"memory_storage"`
SprintsCollection string `yaml:"sprints_collection"`
SprintsStorage string `yaml:"sprints_storage"`
}
SemanticConfig represents the semantic section of config.yaml
type ToolDefinition ¶
type ToolDefinition struct {
Name string
Description string
InputSchema json.RawMessage
}
ToolDefinition defines a tool for the MCP SDK
func GetToolDefinitions ¶
func GetToolDefinitions() []ToolDefinition
GetToolDefinitions returns tool definitions for the official MCP SDK