tool

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider []Provider
}

func DefaultConfig

func DefaultConfig() *Config

type CrewAi added in v0.5.0

type CrewAi interface {
	Name() string
	Description() string
	Call(ctx context.Context, args ...interface{}) (string, error)
}

type LangChain added in v0.5.0

type LangChain interface {
	Name() string
	Description() string
	Call(ctx context.Context, args ...interface{}) (string, error)
}

type Provider added in v0.6.0

type Provider struct {
	Type string
	Name string
}

type Tool

type Tool interface {
	Init(context.Context) error
	Deinit(context.Context) error
	List(context.Context) ([]Provider, error)
	Run(context.Context, string, string, ...interface{}) (string, error)
}

func New

func New(_ context.Context, cfg *Config) Tool

type ToolX added in v0.6.0

type ToolX interface {
	Name() string
	Description() string
	Call(ctx context.Context, args ...interface{}) (string, error)
}

Jump to

Keyboard shortcuts

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