tasks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeChat    = "awe:chat"
	TypeSearch  = "awe:search"
	TypeExecute = "awe:execute"
)

Variables

View Source
var (
	DefaultWorkflowChat   = "qrouter"
	DefaultWorkflowSearch = "search_web"
)

Functions

func NewChatTask

func NewChatTask(req *pb.ChatRequest) (*asynq.Task, error)

func NewExecuteTask

func NewExecuteTask(req *pb.ExecuteRequest) (*asynq.Task, error)

func NewSearchTask

func NewSearchTask(req *pb.SearchRequest) (*asynq.Task, error)

Types

type TaskHandler

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

func NewTaskHandler

func NewTaskHandler(transport transport.Transport, vectorStore vector.Store) *TaskHandler

func (TaskHandler) ProcessTask

func (h TaskHandler) ProcessTask(ctx context.Context, t *asynq.Task) error

Jump to

Keyboard shortcuts

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