Documentation
¶
Index ¶
- Constants
- type Engine
- func (e *Engine) DeleteNode(ctx context.Context, id string) error
- func (e *Engine) GetSubtree(ctx context.Context, id string) ([]*storage.Node, error)
- func (e *Engine) ListConversations(ctx context.Context) ([]*storage.Node, error)
- func (e *Engine) Prompt(ctx context.Context, message string, opts PromptOpts) (<-chan Event, error)
- func (e *Engine) PromptFrom(ctx context.Context, parentNodeID, message string, opts PromptOpts) (<-chan Event, error)
- func (e *Engine) ResolveNode(ctx context.Context, ref string) (*storage.Node, error)
- type Event
- type PromptOpts
Constants ¶
View Source
const ( EventDelta = "delta" EventDone = "done" EventNodeSaved = "node_saved" EventError = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) GetSubtree ¶
func (*Engine) ListConversations ¶
func (*Engine) PromptFrom ¶
Click to show internal directories.
Click to hide internal directories.