Skip to content

Commit 4656125

Browse files
committed
display of hierarchies
1 parent 11fac66 commit 4656125

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

LLM_GUIDANCE.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,19 @@ get_hierarchy(id="FBbt_00003686", relationship="subclass_of", direction="both",
485485
486486
### Presenting Results
487487
488-
- For descendant trees, present as an indented list showing the hierarchy levels.
489-
- For ancestors, show as a path: "mushroom body calyx → mushroom body → protocerebrum → CNS → nervous system".
490-
- Always include the VFB ID alongside the label so users can explore further.
488+
The response includes:
489+
- **`display`** — a pre-formatted text tree with large sibling groups shortened. Always present this directly to the user rather than reformatting the JSON.
490+
- **`display_full`** — the same text tree with no shortening. Use this if the user asks to see all terms.
491+
492+
After showing the text tree, offer the user an interactive HTML version they can open in their browser. Construct the URL using this pattern:
493+
494+
```
495+
https://v3-cached.virtualflybrain.org/get_hierarchy_html?id=<ID>&relationship=<RELATIONSHIP>&direction=<DIRECTION>&max_depth=<DEPTH>
496+
```
497+
498+
For example: `https://v3-cached.virtualflybrain.org/get_hierarchy_html?id=FBbt_00003686&relationship=subclass_of&direction=both&max_depth=2`
499+
500+
The HTML page has a collapsible interactive tree with clickable links to VFB for every term.
491501
492502
---
493503

0 commit comments

Comments
 (0)