api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(host string, port int, token string, mgr *nodes.Manager) *Server

func (*Server) SetChatHandler

func (s *Server) SetChatHandler(fn func(ctx context.Context, sessionKey, content string) (string, error))

func (*Server) SetChatHistoryHandler

func (s *Server) SetChatHistoryHandler(fn func(sessionKey string) []map[string]interface{})

func (*Server) SetConfigAfterHook

func (s *Server) SetConfigAfterHook(fn func())

func (*Server) SetConfigPath

func (s *Server) SetConfigPath(path string)

func (*Server) SetCronHandler

func (s *Server) SetCronHandler(fn func(action string, args map[string]interface{}) (interface{}, error))

func (*Server) SetGatewayVersion

func (s *Server) SetGatewayVersion(v string)

func (*Server) SetLogFilePath

func (s *Server) SetLogFilePath(path string)

func (*Server) SetNodeDispatchHandler

func (s *Server) SetNodeDispatchHandler(fn func(ctx context.Context, req nodes.Request, mode string) (nodes.Response, error))

func (*Server) SetNodeP2PStatusHandler

func (s *Server) SetNodeP2PStatusHandler(fn func() map[string]interface{})

func (*Server) SetNodeWebRTCTransport

func (s *Server) SetNodeWebRTCTransport(t *nodes.WebRTCTransport)

func (*Server) SetSubagentHandler

func (s *Server) SetSubagentHandler(fn func(ctx context.Context, action string, args map[string]interface{}) (interface{}, error))

func (*Server) SetToolsCatalogHandler

func (s *Server) SetToolsCatalogHandler(fn func() interface{})

func (*Server) SetWebUIDir

func (s *Server) SetWebUIDir(dir string)

func (*Server) SetWebUIVersion

func (s *Server) SetWebUIVersion(v string)

func (*Server) SetWhatsAppBridge

func (s *Server) SetWhatsAppBridge(service *channels.WhatsAppBridgeService, basePath string)

func (*Server) SetWorkspacePath

func (s *Server) SetWorkspacePath(path string)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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