reason

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *base.Node, node *reason.Reason) graph.Node

func NewPromptProto

func NewPromptProto() *reason.Reason

func NewProto

func NewProto(name string, d *reason.Reason) *gen.Node

Types

type Engine

type Engine struct {
	*base.Node
	*reason.Engine
}

func NewEngineNode

func NewEngineNode(b *base.Node, node *reason.Engine) *Engine

func (*Engine) Provide

func (n *Engine) Provide() ([]*gen.Node, error)

func (*Engine) Wire

func (n *Engine) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

type PromptNode

type PromptNode struct {
	*base.Node
	*reason.Prompt
}

func NewPromptNode

func NewPromptNode(b *base.Node, node *reason.Prompt) *PromptNode

func (*PromptNode) Type

func (n *PromptNode) Type() (*graph.Info, error)

func (*PromptNode) Wire

func (n *PromptNode) Wire(ctx context.Context, input graph.IO) (graph.IO, error)

Jump to

Keyboard shortcuts

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