Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericStepFactory ¶
type PipeStep ¶
type PipeStep[A, B, C any] struct { // contains filtered or unexported fields }
func (*PipeStep[A, B, C]) IsFinished ¶
type PipeStepState ¶
type PipeStepState int
const ( PipeStepNotStarted PipeStepState = iota PipeStepRunningStep1 // step 1 is running PipeStepRunningStep2 // step 2 is running PipeStepFinished PipeStepError PipeStepClosed )
type SimpleStep ¶
type SimpleStep[A, B any] struct { // contains filtered or unexported fields }
func (*SimpleStep[A, B]) GetOutput ¶
func (s *SimpleStep[A, B]) GetOutput() <-chan helpers.Result[B]
func (*SimpleStep[A, B]) GetState ¶
func (s *SimpleStep[A, B]) GetState() interface{}
func (*SimpleStep[A, B]) IsFinished ¶
func (s *SimpleStep[A, B]) IsFinished() bool
type SimpleStepState ¶
type SimpleStepState int
const ( SimpleStepNotStarted SimpleStepState = iota SimpleStepRunning SimpleStepFinished SimpleStepClosed )
type Step ¶
type Step[A, B any] interface { // Run starts the step and blocks until the end Run(ctx context.Context, a A) error GetOutput() <-chan helpers.Result[B] GetState() interface{} IsFinished() bool }
Step represents one step in a geppetto pipeline
func NewSimpleStep ¶
type StepDescription ¶
type StepDescription struct { Type string `yaml:"type"` // TODO(manuel, 2023-02-04) This is all just a hack right now to get a sense of what we can // achieve in a YAML, and also just to get article.yaml working // // MultiInput is just the name of the input parameter used to iterate over the prompt MultiInput string `yaml:"multi_input,omitempty"` }
type StepFactory ¶
type TemplateStep ¶
type TemplateStep[A any] struct { // contains filtered or unexported fields }
func NewTemplateStep ¶
func NewTemplateStep[A any](template string) *TemplateStep[A]
func (*TemplateStep[A]) GetOutput ¶
func (t *TemplateStep[A]) GetOutput() <-chan helpers.Result[string]
func (*TemplateStep[A]) GetState ¶
func (t *TemplateStep[A]) GetState() interface{}
func (*TemplateStep[A]) IsFinished ¶
func (t *TemplateStep[A]) IsFinished() bool
type TemplateStepState ¶
type TemplateStepState int
const ( TemplateStepNotStarted TemplateStepState = iota TemplateStepRunning TemplateStepFinished TemplateStepClosed )
Click to show internal directories.
Click to hide internal directories.