approval

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Example approval: human in the loop, two ways.

  • An await node parks the execution until a named signal arrives (or a timeout routes it elsewhere). Nothing runs while it waits: the deadline is a durable JetStream schedule.

  • A task can interrupt itself (worker.Interrupt) with a question; the execution waits until Client.Resume answers, then the node runs again with the answer (LangGraph's interrupt()).

    go run ./examples/approval

Jump to

Keyboard shortcuts

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