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

Method taskUpdate

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

Source from the content-addressed store, hash-verified

2801}
2802
2803func (n *daemonNativeTools) taskUpdate(
2804 ctx context.Context,
2805 scope toolspkg.Scope,
2806 req toolspkg.CallRequest,
2807) (toolspkg.ToolResult, error) {
2808 var input taskUpdateInput
2809 if err := decodeNativeInput(req, &input); err != nil {
2810 return toolspkg.ToolResult{}, err
2811 }
2812 actor, err := actorContextFromScope(scope)
2813 if err != nil {
2814 return toolspkg.ToolResult{}, err
2815 }
2816 updated, err := n.deps.Tasks.UpdateTask(ctx, input.TaskID, input.patch(), actor)
2817 if err != nil {
2818 return toolspkg.ToolResult{}, err
2819 }
2820 return structuredResult(map[string]any{nativeToolsTaskKey: updated}, updated.Title)
2821}
2822
2823func (n *daemonNativeTools) taskCancel(
2824 ctx context.Context,

Callers

nothing calls this directly

Calls 5

patchMethod · 0.95
decodeNativeInputFunction · 0.85
actorContextFromScopeFunction · 0.85
structuredResultFunction · 0.85
UpdateTaskMethod · 0.65

Tested by

no test coverage detected