Skip to content

Instantly share code, notes, and snippets.

@thomasdavis
Created April 12, 2025 07:58
Show Gist options
  • Save thomasdavis/dcc14b32635d478504e99e4ec4478812 to your computer and use it in GitHub Desktop.
Save thomasdavis/dcc14b32635d478504e99e4ec4478812 to your computer and use it in GitHub Desktop.
---
config:
layout: fixed
---
flowchart TD
n1["Message Received"] --> n2["Intent Prompt"]
n2 --> n3["No Tool"] & n5["Found Tool"]
n3 --> n6["Stream MainPrompt"]
n5 --> n7["GetToolStrategy"]
n7 --> n8["NoToolStrategy"] & n10["FoundToolStrategy"]
n8 --> n9["Tool Call MainPrompt"]
n10 --> n14["GetCustomPrompt"]
n11["Shape/DataPaths"] --> n12["GetChunkStrategy"]
n12 --> n13["NoChunkStrategy"] & n17["FoundChunkStrategy"]
n14 --> n15["NoCustomPrompt"] & n16["FoundCustomPrompt"]
n15 --> n9
n16 --> n11
n13 --> n19["Tool Call CustomPrompt"] & n20["Stream CustomPrompt"]
n17 --> n22["Chunk Tool Call CustomPrompt"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment