mind

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMindHandlerNotDefined = errors.New("mind handler is not defined")
)

Functions

This section is empty.

Types

type CallOptions

type CallOptions struct {
	Messages []message.Message
	Tools    []Tool
}

type CallResponse

type CallResponse struct {
	Message message.Message
}

type Handler

type Handler interface {
	Call(opt *CallOptions) (*CallResponse, error)
}

type Mind

type Mind struct {
	// contains filtered or unexported fields
}

func (*Mind) Call

func (m *Mind) Call(opt *CallOptions) (*CallResponse, error)

func (*Mind) SetHandler

func (m *Mind) SetHandler(handler Handler) error

type Tool

type Tool struct {
	ID string
	*ability.Tool
}

Tool mind所需的tool结构需带唯一id

Jump to

Keyboard shortcuts

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