update
This commit is contained in:
+24
-24
@@ -217,30 +217,30 @@ Here's a cleaned-up version with proper alignment:
|
||||
│ │ AssistantMessage (finalized) │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ check tool_calls? │
|
||||
│ │ │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ YES NO │
|
||||
│ │ │ │ │
|
||||
│ │ ▼ │ │
|
||||
│ │ execute tools │ │
|
||||
│ │ │ │ │
|
||||
│ │ ▼ │ │
|
||||
│ │ emit ToolResultMessage│ │
|
||||
│ │ │ │ │
|
||||
│ │ └─────┬─────┘ │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ append to context.messages │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ next turn │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ check pending/follow-up │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ └────────────────────┴──────────────────────────────────────────────────────────────────────────────────►│
|
||||
│ │ check tool_calls? │
|
||||
│ │ │ │ │
|
||||
│ │ │ │ │
|
||||
│ │ YES NO │
|
||||
│ │ │ │ │
|
||||
│ │ ▼ │ │
|
||||
│ │ execute tools │ │
|
||||
│ │ │ │ │
|
||||
│ │ ▼ │ │
|
||||
│ │ emit ToolResultMessage│ │
|
||||
│ │ │ │ │
|
||||
│ │ └─────┬─────┘ │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ append to context.messages │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ next turn │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ │ check pending/follow-up │
|
||||
│ │ │ │
|
||||
│ │ ▼ │
|
||||
│ └───────────────────────────────────────┴───────────────────────────────────────────────────────────────►│
|
||||
│ (loop back to main loop or end) │
|
||||
│ │
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
Reference in New Issue
Block a user