tool

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 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 Config

type Config struct {
	Type string
}

func DefaultConfig

func DefaultConfig() *Config

type CrewAi added in v0.5.0

type CrewAi struct {
	Type string
}

func (*CrewAi) Deinit added in v0.5.0

func (c *CrewAi) Deinit(_ context.Context) error

func (*CrewAi) Init added in v0.5.0

func (c *CrewAi) Init(_ context.Context) error

func (*CrewAi) Run added in v0.5.0

func (c *CrewAi) Run(ctx context.Context, invokes []*Invoke) error

type FlowX added in v0.5.0

type FlowX struct{}

func (*FlowX) Deinit added in v0.5.0

func (f *FlowX) Deinit(_ context.Context) error

func (*FlowX) Init added in v0.5.0

func (f *FlowX) Init(_ context.Context) error

func (*FlowX) Run added in v0.5.0

func (f *FlowX) Run(ctx context.Context, invokes []*Invoke) error

nolint:gosec

type Func added in v0.5.0

type Func func(ctx context.Context, args ...interface{}) ([]byte, error)

type Invoke added in v0.5.0

type Invoke struct {
	Name        string
	Description string
	Path        string
	Func        Func
	Args        map[string]interface{}
	Result      string
}

type LangChain added in v0.5.0

type LangChain struct{}

func (*LangChain) Deinit added in v0.5.0

func (l *LangChain) Deinit(_ context.Context) error

func (*LangChain) Init added in v0.5.0

func (l *LangChain) Init(_ context.Context) error

func (*LangChain) Run added in v0.5.0

func (l *LangChain) Run(ctx context.Context, invokes []*Invoke) error

type Tool

type Tool interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, []*Invoke) error
}

func New

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

Jump to

Keyboard shortcuts

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