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

Method CreateChildTask

internal/cli/client.go:4790–4801  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	request CreateTaskChildRequest,
)

Source from the content-addressed store, hash-verified

4788}
4789
4790func (c *unixSocketClient) CreateChildTask(
4791 ctx context.Context,
4792 id string,
4793 request CreateTaskChildRequest,
4794) (TaskRecord, error) {
4795 var response contract.TaskResponse
4796 path := "/api/tasks/" + url.PathEscape(strings.TrimSpace(id)) + "/children"
4797 if err := c.doJSON(ctx, http.MethodPost, path, nil, request, &response); err != nil {
4798 return TaskRecord{}, err
4799 }
4800 return response.Task, nil
4801}
4802
4803func (c *unixSocketClient) AddTaskDependency(
4804 ctx context.Context,

Callers 1

Calls 1

doJSONMethod · 0.95

Tested by 1