()
| 166 | defer e.mu.Unlock() |
| 167 | var results []map[string]any |
| 168 | for _, tid := range e.toolOrder { |
| 169 | slot := e.slots[tid] |
| 170 | if slot == nil { |
| 171 | continue |
| 172 | } |
| 173 | if slot.State == ToolStateCompleted || slot.State == ToolStateAborted { |
| 174 | slot.State = ToolStateYielded |
| 175 | if slot.Result != nil { |
| 176 | results = append(results, slot.Result) |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | return results |
no outgoing calls