workflow

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunInput

type RunInput struct {
	ParentLocation string                 `json:"parentLocation,omitempty"`
	Location       string                 `json:"location,omitempty"`
	Tasks          []string               `json:"tasks,omitempty"`
	Context        map[string]interface{} `json:"parameters,omitempty"`
	Workflow       *model.Workflow        `json:"workflow,omitempty"`
	Source         []byte                 `json:"source,omitempty"`
	IgnoreError    bool                   `json:"throwError,omitempty"`
	Async          bool                   `json:"wait,omitempty"`
	WaitTimeInMs   int                    `json:"WaitTimeInMs,omitempty"`
}

func (*RunInput) Init

func (i *RunInput) Init(ctx context.Context)

func (*RunInput) Validate

func (i *RunInput) Validate(ctx context.Context) error

type RunOutput

type RunOutput struct {
	ProcessID string
	Output    map[string]interface{}
	Errors    map[string]string
	State     string
	Trace     *tracing.Trace `json:"trace,omitempty"`
}

type Service

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

Service extracts structured information from LLM responses

func New

func New(processor *processor.Service, workflowDao *workflow.Service, processDao dao.Service[string, execution.Process]) *Service

New creates a new extractor service

func (*Service) Method

func (s *Service) Method(name string) (types.Executable, error)

Method returns the specified method

func (*Service) Methods

func (s *Service) Methods() types.Signatures

Methods returns the service methods

func (*Service) Name

func (s *Service) Name() string

Name returns the service name

func (*Service) WaitForProcess

func (s *Service) WaitForProcess(ctx context.Context, id string, timeoutMs int) (*WaitOutput, error)

WaitForProcess waits for a process to complete

type StatusInput

type StatusInput struct {
	ProcessID string `json:"processID,omitempty"`
}

func (*StatusInput) Validate

func (i *StatusInput) Validate(ctx context.Context) error

type StatusOutput

type StatusOutput struct {
	State  string
	Output map[string]interface{}
}

type WaitInput

type WaitInput struct {
	ProcessID         string `json:"processID,omitempty"`
	TimeoutInMs       int    `json:"timeoutSec,omitempty"`
	PoolFrequencyInMs int    `json:"poolTimeMs,omitempty"`
}

func (*WaitInput) Init

func (i *WaitInput) Init(ctx context.Context)

func (*WaitInput) Validate

func (i *WaitInput) Validate(ctx context.Context) error

type WaitOutput

type WaitOutput execution.ProcessOutput

WaitOutput represents a wait output

Jump to

Keyboard shortcuts

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