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

Method GetTask

agent/task_runtime.go:257–266  ·  view source on GitHub ↗
(taskID, scopeID string)

Source from the content-addressed store, hash-verified

255}
256
257func (rt *AgentTaskRuntime) GetTask(taskID, scopeID string) *AgentTaskRecord {
258 rt.mu.Lock()
259 defer rt.mu.Unlock()
260 record := rt.records[taskID]
261 if record == nil || record.ParentScopeID != scopeID {
262 return nil
263 }
264 cp := *record
265 return &cp
266}
267
268func (rt *AgentTaskRuntime) RegisterForegroundTask(taskID, parentTaskID, parentScopeID, workerLabel, description, agentType string) *AgentTaskRecord {
269 now := nowSeconds()

Calls

no outgoing calls