Documentation
¶
Index ¶
- func ScanPromptsFolder(dir string) ([]scannedPrompt, error)
- func ScanResourcesTree(dir string) ([]scannedResource, error)
- func ScanToolsFolder(toolsFolder string) (map[string]*toolmetadata.ToolMetadata, error)
- func ValidateTool(toolName string, meta *toolmetadata.ToolMetadata, scriptPath string) []string
- type PromptArgument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanPromptsFolder ¶ added in v0.16.0
ScanPromptsFolder scans a prompts folder. A prompt is dynamic when a name.toml (with sibling name.py) is present, or static when only a name.md/name.txt is present. If both exist for a name, the dynamic one wins.
func ScanResourcesTree ¶ added in v0.16.0
ScanResourcesTree walks a resources directory and returns every resource (static or template) it describes.
func ScanToolsFolder ¶
func ScanToolsFolder(toolsFolder string) (map[string]*toolmetadata.ToolMetadata, error)
ScanToolsFolder scans the tools folder for .toml files and returns metadata
func ValidateTool ¶
func ValidateTool(toolName string, meta *toolmetadata.ToolMetadata, scriptPath string) []string
ValidateTool checks if a tool's metadata matches its script
Types ¶
type PromptArgument ¶ added in v0.16.0
PromptArgument describes one argument a dynamic prompt accepts.
Click to show internal directories.
Click to hide internal directories.