haive.core.graph.node.unified_validation_node¶
Unified Validation Node V2 - Proper Pydantic implementation.
This replaces the artificial separation between ValidationNodeV2 and validation_router_v2 with a single node that validates and routes in one unified operation.
Fixed to follow proper Pydantic patterns without custom __init__ methods.
Classes¶
Unified validation node that combines tool validation and routing. |
Functions¶
|
Create a unified validation node with sensible defaults. |
Module Contents¶
- class haive.core.graph.node.unified_validation_node.UnifiedValidationNodeConfig(/, **data)¶
Bases:
haive.core.graph.node.base_node_config.BaseNodeConfigUnified validation node that combines tool validation and routing.
This node: 1. Analyzes tool calls from the last AIMessage 2. Validates Pydantic models directly 3. Routes to appropriate destinations via Command/Send 4. Handles all error cases in one place
Fixed to follow proper Pydantic patterns.
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)
- validate_config()¶
Validate node configuration.
- Return type:
Self
- haive.core.graph.node.unified_validation_node.create_unified_validation_node(name='unified_validation', engine_name='main_engine', **kwargs)¶
Create a unified validation node with sensible defaults.
- Parameters:
- Return type: