genaitoolbox

package
v0.0.0-...-14dc775 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 7 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
}

func New

func New(url string, options ...Option) (*Client, error)

func (*Client) Execute

func (c *Client) Execute(ctx context.Context, name string, parameters map[string]any) (any, error)

func (*Client) Tools

func (c *Client) Tools(ctx context.Context) ([]tool.Tool, error)

type Option

type Option func(*Client)

type Tool

type Tool struct {
	Description string          `json:"description"`
	Parameters  []ToolParameter `json:"parameters"`
}

type ToolParameter

type ToolParameter struct {
	Type string `json:"type"`

	Name        string `json:"name"`
	Description string `json:"description"`
}

type ToolSet

type ToolSet struct {
	Tools map[string]Tool `json:"tools"`
}

Jump to

Keyboard shortcuts

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