customtools

package
v0.3.31-beta Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 8 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 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.

Jump to

Keyboard shortcuts

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