execservice

package
v0.0.0-...-35541fa Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecService

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

func NewExec

func NewExec(ctx context.Context, promptRepo llmrepo.ModelRepo, dbInstance libdb.DBManager) *ExecService

func (*ExecService) Execute

func (s *ExecService) Execute(ctx context.Context, request *TaskRequest) (*TaskResponse, error)

func (*ExecService) GetServiceGroup

func (s *ExecService) GetServiceGroup() string

func (*ExecService) GetServiceName

func (s *ExecService) GetServiceName() string

type TaskRequest

type TaskRequest struct {
	Prompt string `json:"prompt"`
}

type TaskResponse

type TaskResponse struct {
	ID       string `json:"id"`
	Response string `json:"response"`
}

type TasksEnvService

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

func NewTasksEnv

func NewTasksEnv(ctx context.Context, environmentExec taskengine.EnvExecutor, dbInstance libdb.DBManager) *TasksEnvService

func (*TasksEnvService) Execute

func (s *TasksEnvService) Execute(ctx context.Context, chain *taskengine.ChainDefinition, input string) (any, error)

func (*TasksEnvService) GetServiceGroup

func (s *TasksEnvService) GetServiceGroup() string

func (*TasksEnvService) GetServiceName

func (s *TasksEnvService) GetServiceName() string

Jump to

Keyboard shortcuts

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