Source code for haive.core.graph.node.base_node_config
"""Base Node Configuration for V2 Nodes.This module provides the base configuration class for v2 nodes withimproved type safety and generic support."""fromtypingimportGeneric,TypeVarfrompydanticimportBaseModelfromhaive.core.graph.node.base_configimportNodeConfig# Type variables for input/output schemasTInput=TypeVar("TInput",bound=BaseModel)TOutput=TypeVar("TOutput",bound=BaseModel)
[docs]classBaseNodeConfig(NodeConfig,Generic[TInput,TOutput]):"""Base node config with generic input/output typing support for v2 nodes."""