tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides client-side tool functionality

func NewClient

func NewClient(base *base.Base) *Client

NewClient creates a new Client

func (*Client) Call

func (c *Client) Call(ctx context.Context, name string, arguments map[string]interface{}) (*types.CallToolResult, error)

Call invokes a specific tool

func (*Client) List

func (c *Client) List(ctx context.Context) ([]types.Tool, error)

List requests the list of available tools

func (*Client) OnToolListChanged

func (c *Client) OnToolListChanged(callback func())

OnToolListChanged registers a callback for tool list change notifications

Jump to

Keyboard shortcuts

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