MCPcopy Create free account
hub / github.com/compozy/agh / taskChildCreate

Method taskChildCreate

internal/daemon/native_tools.go:2783–2801  ·  view source on GitHub ↗
(
	ctx context.Context,
	scope toolspkg.Scope,
	req toolspkg.CallRequest,
)

Source from the content-addressed store, hash-verified

2781}
2782
2783func (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
2803func (n *daemonNativeTools) taskUpdate(
2804 ctx context.Context,

Callers

nothing calls this directly

Calls 5

specMethod · 0.95
decodeNativeInputFunction · 0.85
actorContextFromScopeFunction · 0.85
structuredResultFunction · 0.85
CreateChildTaskMethod · 0.65

Tested by

no test coverage detected