hap.server.runtime¶
Classes¶
Execute an HAP graph with proper error handling and Haive integration. |
Module Contents¶
- class hap.server.runtime.HAPRuntime(graph: haive.hap.models.graph.HAPGraph)¶
Execute an HAP graph with proper error handling and Haive integration.
- Parameters:
graph (haive.hap.models.graph.HAPGraph)
- async run(initial_context: Dict[str, Any]) haive.hap.models.context.HAPContext ¶
Execute the graph asynchronously.
- Parameters:
initial_context (Dict[str, Any])
- Return type:
- run_sync(initial_context: Dict[str, Any]) haive.hap.models.context.HAPContext ¶
Execute the graph synchronously (for backward compatibility).
- Parameters:
initial_context (Dict[str, Any])
- Return type:
- graph¶