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.
Click to show internal directories.
Click to hide internal directories.