(abort <-chan struct{})
| 519 | if slot == nil { |
| 520 | return |
| 521 | } |
| 522 | slot.Truncated = truncated |
| 523 | slot.IsError = isError |
| 524 | slot.Result = map[string]any{"type": "tool_result", "tool_use_id": tcID, "content": content} |
| 525 | } |
| 526 | |
| 527 | func (e *StreamingToolExecutor) signalActivity() { |
| 528 | select { |
| 529 | case e.activity <- struct{}{}: |
| 530 | default: |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | func signalAbort(slot *ToolSlot) { |