(tcID string)
| 358 | return false |
| 359 | } |
| 360 | return true |
| 361 | } |
| 362 | |
| 363 | func (e *StreamingToolExecutor) isSafeLocked(tc coretools.ToolCall) bool { |
| 364 | tool := e.Registry.Get(tc.Name) |
| 365 | if tool == nil { |
| 366 | return false |
| 367 | } |
| 368 | input, err := tool.DecodeInput(tc.Input) |
| 369 | if err != nil { |
| 370 | input = nil |
| 371 | } |
| 372 | return tool.IsConcurrencySafe(input) |
| 373 | } |
| 374 | |
| 375 | func (e *StreamingToolExecutor) launch(tcID string) { |
| 376 | e.mu.Lock() |
| 377 | slot := e.slots[tcID] |
| 378 | if slot == nil || slot.State != ToolStateQueued { |
| 379 | e.mu.Unlock() |
no test coverage detected