haive.core.graph.node.routing_validation_node¶

Validation node that returns Send objects for routing based on validation results.

Classes¶

RoutingValidationNode

Validation node that creates Send branches based on validation results.

Functions¶

create_routing_validation_node(**kwargs)

Factory function to create a routing validation node.

Module Contents¶

class haive.core.graph.node.routing_validation_node.RoutingValidationNode(/, **data)¶

Bases: pydantic.BaseModel

Validation node that creates Send branches based on validation results.

This node: 1. Gets tool calls from the last AI message (via computed fields) 2. Validates each tool call against available tools/schemas 3. Creates Send objects to route valid tools to appropriate nodes 4. Returns routing decisions based on validation results

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

haive.core.graph.node.routing_validation_node.create_routing_validation_node(**kwargs)¶

Factory function to create a routing validation node.

Return type:

RoutingValidationNode