MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / launch

Method launch

agent/tools_executor.go:360–376  ·  view source on GitHub ↗
(tcID string)

Source from the content-addressed store, hash-verified

358 return false
359 }
360 return true
361}
362
363func (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
375func (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()

Callers 3

AddToolMethod · 0.95
TryStartQueuedMethod · 0.95
maybeDrainMethod · 0.95

Calls 2

isSafeLockedMethod · 0.95
executeOneMethod · 0.95

Tested by

no test coverage detected