hap.client.http¶
Classes¶
Very small HTTP client for a future HAP server. |
Module Contents¶
- class hap.client.http.HTTPClient(base_url: str, *, timeout: float = 30.0)¶
Very small HTTP client for a future HAP server.
Expects a server that exposes /run-agent and /run-graph endpoints.
This is a placeholder you can wire to your FastAPI app later.
- run_agent(entrypoint: str, *, inputs: Mapping[str, Any] | None = None) hap.models.context.HAPContext ¶
- Parameters:
- Return type:
- run_graph(graph: hap.models.graph.AgentGraph, *, inputs: Mapping[str, Any] | None = None) hap.models.context.HAPContext ¶
- Parameters:
graph (hap.models.graph.AgentGraph)
inputs (Mapping[str, Any] | None)
- Return type:
- base_url¶
- timeout = 30.0¶