# Graph-of-thought Framework

### Overview

The Graph of Thought (GoT) framework is under active research at Sully AI as a foundation for structured, multi-step reasoning across complex clinical workflows. GoT replaces traditional linear logic with a dynamic graph architecture, where nodes represent individual facts, hypotheses, or actions, and edges encode relationships such as causality, temporal ordering, or contradiction.

This system is not yet deployed, but initial planning has focused on integrating GoT into our decision support stack and future consensus mechanism. Team discussions have explored mapping GoT nodes to FHIR-compatible data structures and using it to coordinate multi-agent reasoning in diagnosis, triage, and task planning.

### Why Graph of Thought?

{% tabs %}
{% tab title="Agents + Reasoning" %}
**Supports Multi-Agent Coordination**

* Agents can independently operate on subgraphs, contribute to shared nodes, or prune irrelevant branches.
* Ideal for collaborative reasoning between scribe, diagnosis, and referral agents.

**Improved Reasoning Structure**

* Enables branching logic, revisitation of earlier steps, and parallel evaluation paths.
* Useful for differential diagnosis, treatment option evaluation, and ambiguous data interpretation.
  {% endtab %}

{% tab title="Workflows" %}
**Better Alignment with Clinical Workflows**

* Reflects how clinicians think: weighing evidence, comparing timelines, revisiting prior assumptions.
* Facilitates integration with structured clinical data (e.g., FHIR, SNOMED, LOINC).

**Composability and Reusability**

* Reasoning fragments can be reused across visits, patients, or similar cases.
* Ideal for building longitudinal patient reasoning models.
  {% endtab %}

{% tab title="Tracing" %}
**Explainability and Auditability**

* Every conclusion can be traced to its contributing nodes and agent decisions.
* Graph structure enables clear visualization of reasoning paths and confidence levels.
  {% endtab %}
  {% endtabs %}

### Planned Integration Points

{% stepper %}
{% step %}
Consensus Engine: Graph merge strategies across agents for unified decision outputs.
{% endstep %}

{% step %}
Temporal Patient Modeling: Using GoT to build case timelines (e.g., symptom onset → lab results → resolution).
{% endstep %}

{% step %}
EHR Interoperability: Mapping graph nodes to FHIR resources and external knowledge graphs.
{% endstep %}

{% step %}
Uncertainty Management: Representing ambiguous or competing conclusions as competing branches in the graph.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sully.gitbook.io/sully.ai-docs/FEM1tMOJsSSszbLOgKLA/graph-of-thought-framework.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
