tool

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package tool provides tool execution against proxied APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service executes API operations through a proxy.

func New

func New(proxy repository.Proxy, baseURL string) *Service

New creates a tool Service with the given proxy and base URL.

func (*Service) Execute

func (s *Service) Execute(ctx context.Context, td *models.ToolDefinition, in map[string]any) (int, []byte, error)

Execute runs an API operation with the given parameters.

Jump to

Keyboard shortcuts

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