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.

Revisions

  1. thomasdavis created this gist Apr 12, 2025.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    ---
    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"]