execservice

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecService

type ExecService interface {
	Execute(ctx context.Context, request *TaskRequest) (*TaskResponse, error)
}

func NewExec

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

func WithActivityTracker

func WithActivityTracker(service ExecService, tracker activitytracker.ActivityTracker) ExecService

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 interface {
	Execute(ctx context.Context, chain *taskengine.ChainDefinition, input any, inputType taskengine.DataType) (any, taskengine.DataType, []taskengine.CapturedStateUnit, error)
	taskengine.HookRegistry
}

func EnvWithActivityTracker

func EnvWithActivityTracker(service TasksEnvService, tracker activitytracker.ActivityTracker) TasksEnvService

func NewTasksEnv

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

Jump to

Keyboard shortcuts

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