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

Function runtimeAndScope

agent/agent_tool.go:390–396  ·  view source on GitHub ↗
(execCtx coretools.ExecutionContext)

Source from the content-addressed store, hash-verified

388}
389
390func runtimeAndScope(execCtx coretools.ExecutionContext) (*AgentTaskRuntime, string, string) {
391 rt, _ := execCtx["task_runtime"].(*AgentTaskRuntime)
392 if rt == nil {
393 return nil, "main", "Error: task runtime is not available in the execution context."
394 }
395 return rt, stringFromContext(execCtx, "scope_id", "main"), ""
396}
397
398func jsonString(v any) string {
399 b, _ := json.MarshalIndent(v, "", " ")

Callers 5

NewTaskListToolFunction · 0.85
NewTaskGetToolFunction · 0.85
NewTaskWaitToolFunction · 0.85
NewTaskStopToolFunction · 0.85
NewSendMessageToolFunction · 0.85

Calls 1

stringFromContextFunction · 0.85

Tested by

no test coverage detected