flow

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 10 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 {
	Channel string
	Port    string
	Gpt     gpt.Gpt
	Memory  memory.Memory
	Tool    tool.Tool
}

func DefaultConfig

func DefaultConfig() *Config

type Flow

type Flow interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context) error
}

func New

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

type WeChat added in v0.11.0

type WeChat struct {
	Bot *openwechat.Bot
}

func (*WeChat) Deinit added in v0.11.0

func (w *WeChat) Deinit(_ context.Context) error

func (*WeChat) Init added in v0.11.0

func (w *WeChat) Init(_ context.Context) error

func (*WeChat) Run added in v0.11.0

func (w *WeChat) Run(_ context.Context) error

Jump to

Keyboard shortcuts

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