customtools

package
v0.4.16-beta Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 9 Imported by: 0

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.

func Inspect

func Inspect(ctx context.Context, execPath string, timeout time.Duration) (*Metadata, error)

Inspect runs a custom tool's description command and validates the metadata it exposes.

type RuntimeConfig

type RuntimeConfig struct {
	Timeout time.Duration
}

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.

Jump to

Keyboard shortcuts

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