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

Method ClearTaskBlock

internal/cli/client.go:4484–4496  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	blockID string,
	request ClearTaskBlockRequest,
)

Source from the content-addressed store, hash-verified

4482}
4483
4484func (c *unixSocketClient) ClearTaskBlock(
4485 ctx context.Context,
4486 id string,
4487 blockID string,
4488 request ClearTaskBlockRequest,
4489) (TaskBlockRecord, error) {
4490 var response contract.TaskBlockResponse
4491 path := taskBlocksPath(id) + "/" + url.PathEscape(strings.TrimSpace(blockID)) + "/clear"
4492 if err := c.doJSON(ctx, http.MethodPost, path, nil, request, &response); err != nil {
4493 return TaskBlockRecord{}, err
4494 }
4495 return response.Block, nil
4496}
4497
4498func (c *unixSocketClient) ClearTaskBlockAsAgent(
4499 ctx context.Context,

Callers

nothing calls this directly

Calls 2

doJSONMethod · 0.95
taskBlocksPathFunction · 0.85

Tested by

no test coverage detected