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

Method taskRuntime

ui/runtime.go:251–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251func (r *UiRuntime) taskRuntime() *agent.AgentTaskRuntime {
252 if provider, ok := r.Engine.(interface {
253 TaskRuntimeForUI() *agent.AgentTaskRuntime
254 }); ok {
255 return provider.TaskRuntimeForUI()
256 }
257 if queryEngine, ok := r.Engine.(*agent.QueryEngine); ok && queryEngine != nil && queryEngine.CoreEngine != nil {
258 return queryEngine.CoreEngine.TaskRuntime
259 }
260 if coreEngine, ok := r.Engine.(*agent.CoreExecutionEngine); ok && coreEngine != nil {
261 return coreEngine.TaskRuntime
262 }
263 return nil
264}
265
266func (r *UiRuntime) resolvePermissionEvent(event UiEvent, answer string) {
267 granted := answer == "once" || answer == "always"

Callers 1

RunSubmitMessageMethod · 0.95

Calls 1

TaskRuntimeForUIMethod · 0.80

Tested by

no test coverage detected