This commit is contained in:
2026-07-28 11:09:22 +07:00
parent b8254490e8
commit 0ed8be5daa
+24 -24
View File
@@ -217,30 +217,30 @@ Here's a cleaned-up version with proper alignment:
│ │ AssistantMessage (finalized) │ │ │ AssistantMessage (finalized) │
│ │ │ │ │ │ │ │
│ │ ▼ │ │ │ ▼ │
│ │ check tool_calls? │ │ check tool_calls?
│ │ │ │
│ │ │ │
│ │ YES NO │ │ YES NO
│ │ │ │
│ │ ▼ │ │ │ ▼ │
│ │ execute tools │ │ │ execute tools │
│ │ │ │
│ │ ▼ │ │ │ ▼ │
│ │ emit ToolResultMessage│ │ │ emit ToolResultMessage│ │
│ │ │ │
│ │ └─────┬─────┘ │ │ └─────┬─────┘
│ │ │ │
│ │ │ │
│ │ append to context.messages │ │ append to context.messages │
│ │ │ │
│ │ │ │
│ │ next turn │ │ next turn
│ │ │ │
│ │ │ │
│ │ check pending/follow-up │ │ check pending/follow-up │
│ │ │ │
│ │ │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────►│ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────►│
│ (loop back to main loop or end) │ │ (loop back to main loop or end) │
│ │ │ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘