(execCtx coretools.ExecutionContext)
| 388 | } |
| 389 | |
| 390 | func 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 | |
| 398 | func jsonString(v any) string { |
| 399 | b, _ := json.MarshalIndent(v, "", " ") |
no test coverage detected