( ctx context.Context, scope toolspkg.Scope, req toolspkg.CallRequest, )
| 2781 | } |
| 2782 | |
| 2783 | func (n *daemonNativeTools) taskChildCreate( |
| 2784 | ctx context.Context, |
| 2785 | scope toolspkg.Scope, |
| 2786 | req toolspkg.CallRequest, |
| 2787 | ) (toolspkg.ToolResult, error) { |
| 2788 | var input taskChildCreateInput |
| 2789 | if err := decodeNativeInput(req, &input); err != nil { |
| 2790 | return toolspkg.ToolResult{}, err |
| 2791 | } |
| 2792 | actor, err := actorContextFromScope(scope) |
| 2793 | if err != nil { |
| 2794 | return toolspkg.ToolResult{}, err |
| 2795 | } |
| 2796 | created, err := n.deps.Tasks.CreateChildTask(ctx, input.ParentTaskID, input.spec(scope), actor) |
| 2797 | if err != nil { |
| 2798 | return toolspkg.ToolResult{}, err |
| 2799 | } |
| 2800 | return structuredResult(map[string]any{nativeToolsTaskKey: created}, created.Title) |
| 2801 | } |
| 2802 | |
| 2803 | func (n *daemonNativeTools) taskUpdate( |
| 2804 | ctx context.Context, |
nothing calls this directly
no test coverage detected