toolruntime

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitToolRuntimeHandlers

func InitToolRuntimeHandlers(api huma.API, rt *ToolRuntime)

InitToolRuntimeHandlers registers runtime endpoints (tool invocation).

Types

type ToolRuntime

type ToolRuntime struct {
	// contains filtered or unexported fields
}

ToolRuntime executes tools (HTTP/Go) using tool definitions retrieved from ToolStore.

func NewToolRuntime

func NewToolRuntime(s *store.ToolStore) *ToolRuntime

func (*ToolRuntime) InvokeTool

func (rt *ToolRuntime) InvokeTool(
	ctx context.Context,
	req *spec.InvokeToolRequest,
) (*spec.InvokeToolResponse, error)

InvokeTool locates a tool version in the ToolStore and executes it according to its type. - Validates request, slug/version. - Enforces bundle/tool enabled state. - Dispatches to HTTP or Go runner with functional options constructed from the request body.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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