update
This commit is contained in:
+24
-24
@@ -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) │
|
||||||
│ │
|
│ │
|
||||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
|
|||||||
Reference in New Issue
Block a user