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

Function BuildSubagentState

agent/loop.go:1536–1545  ·  view source on GitHub ↗
(parentState *AgentState, permissionMode string)

Source from the content-addressed store, hash-verified

1534 }
1535}
1536
1537func (e *CoreExecutionEngine) apiErrorEvent(msg string, metadata map[string]any) StreamEvent {
1538 return NewStreamEvent("error", fmt.Sprintf("API error after %d retries: %s. The request may be malformed. Try /clear to start a fresh session.", MaxAPIErrorRetries, msg), metadata)
1539}
1540
1541func (e *CoreExecutionEngine) isAborted() bool {
1542 e.mu.Lock()
1543 defer e.mu.Unlock()
1544 return e.aborted
1545}
1546
1547func (e *CoreExecutionEngine) clearAbort() {
1548 e.mu.Lock()

Callers 3

handleREPLSlashCommandFunction · 0.92
SpawnWorkerMethod · 0.85
ExecuteMethod · 0.85

Calls 2

NewAgentStateFunction · 0.85
ClonePermissionStateFunction · 0.85

Tested by

no test coverage detected