Documentation
¶
Overview ¶
Package customtools contains shared helpers for inspecting custom tool executables across runtime discovery and plugin metadata listing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Timeout string `json:"timeout"`
}
Config represents the optional JSON structure returned by a custom tool's config command.
type Description ¶
type Description struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema map[string]any `json:"input_schema"`
}
Description represents the JSON structure returned by a custom tool's description command.
type Metadata ¶
type Metadata struct {
Name string
Description string
Schema *jsonschema.Schema
}
Metadata contains the validated metadata exposed by a custom tool.
type RuntimeConfig ¶
RuntimeConfig contains validated runtime defaults exposed by a custom tool.
func InspectConfig ¶
func InspectConfig(ctx context.Context, execPath string, timeout time.Duration) (*RuntimeConfig, error)
InspectConfig runs a custom tool's optional config command and validates the runtime defaults it exposes. A command execution error means the optional command is unavailable and is not treated as a failure.