Skip to main content

Module payload

Module payload 

Source
Expand description

Payload trait and PayloadNode for integrating external work units.

The Payload trait is the boundary between the graph orchestrator and external execution logic (e.g., LLM calls from llm-pipeline). The graph runtime never implements payload logic — it only orchestrates execution.

Structs§

PayloadContext
Context passed to payloads during execution.
PayloadNode
A node that wraps a Payload for execution within the graph.
PayloadOutput
Output from a payload execution.

Traits§

Payload
A unit of work that can be executed by the graph runtime.

Type Aliases§

InputSelector
Function that extracts payload input from graph state.
OutputMapper
Function that maps payload output back into graph state.
PayloadError
Error type for payload invocations.
TokenCallback
Token callback type for streaming.