Skip to content

feat(workflow): Node-to-Node Data Flows#943

Open
baptmont wants to merge 2 commits into
v2from
baptmont/v2-nodetonode
Open

feat(workflow): Node-to-Node Data Flows#943
baptmont wants to merge 2 commits into
v2from
baptmont/v2-nodetonode

Conversation

@baptmont

@baptmont baptmont commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Overview

This Pull Request implements self healing Node-to-Node Data Flows

To support the complex runtime dynamics of declarative graphs, this PR introduces robust, self-healing data adapters across core workflow nodes (ToolNode, FunctionNode). These adapters automatically bridge data formatting mismatches (e.g., stringified JSON, conversational envelopes) between upstream and downstream nodes without requiring manual glue code.


Self-Healing Node-to-Node Data Flows (workflow)

  • ToolNode Self-Healing Input Parsing: Upstream text nodes often serialize structured arguments into JSON strings. If the incoming input to ToolNode is a JSON-serialized string, it will automatically attempt to unmarshal it into a structured map[string]any conforming to the tool's input schema, preventing schema verification crashes.
  • FunctionNode Direct Event Propagation: When a registered custom function explicitly returns a *session.Event, it is now propagated directly down the stream instead of being wrapped inside an .Output field. This allows custom workflow nodes to declare explicit routing tags (ev.Routes) to trigger complex conditional branches.

@baptmont baptmont requested review from hanorik and wolo-lab and removed request for wolo-lab June 2, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants