Discover Causal Edges
Discover causal edges within an episode.
This endpoint analyzes an episode to identify potential causal relationships between facts. It uses three discovery signals:
- Temporal precedence: Earlier facts might cause later facts
- Correlational: Co-occurrence suggests causation
- LLM inference: "What causes what in this episode?"
The discovered edges have strength estimates based on discovery signal confidence.
Why This Works
General intelligence requires moving from Observation → Intervention → Counterfactual. This endpoint discovers edges so agents can later predict (intervention) and explore hypotheticals (counterfactual).
Args: episode_id: The episode to analyze request: Discovery request with auto_save flag current_user: Authenticated user db: Database session
Returns: Discovered edges with strengths and mechanisms
Example: json { "episode_id": "ep_123", "edges_discovered": 3, "edges": [ { "id": "edge_1", "cause_entity_id": "fact_1", "effect_entity_id": "fact_2", "mechanism": "temporal", "strength": 0.85 } ] }
Request
- The document declares no server URL.
- Auth: HTTP bearer
Path parameters
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.