translate

package
v0.0.0-...-b7aeced Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 4 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(provider translator.Provider, 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 Result

type Result struct {
	Text     string `json:"text,omitempty"`
	Language string `json:"language,omitempty"`
}

Jump to

Keyboard shortcuts

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