(name, description string, proto any, exec func(context.Context, coretools.ExecutionContext, any) (string, error))
| 378 | } |
| 379 | |
| 380 | func newTaskTool(name, description string, proto any, exec func(context.Context, coretools.ExecutionContext, any) (string, error)) coretools.Tool { |
| 381 | return &taskTool{ |
| 382 | BaseTool: coretools.BaseTool{Spec: coretools.ToolSpec{ |
| 383 | Name: name, Description: description, InputPrototype: proto, |
| 384 | ReadOnly: coretools.BoolPtr(false), ConcurrencySafe: coretools.BoolPtr(true), Destructive: coretools.BoolPtr(false), |
| 385 | }}, |
| 386 | exec: exec, |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | func runtimeAndScope(execCtx coretools.ExecutionContext) (*AgentTaskRuntime, string, string) { |
| 391 | rt, _ := execCtx["task_runtime"].(*AgentTaskRuntime) |
no outgoing calls
no test coverage detected