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

Method BlockTask

internal/cli/client.go:4435–4445  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	request CreateTaskBlockRequest,
)

Source from the content-addressed store, hash-verified

4433}
4434
4435func (c *unixSocketClient) BlockTask(
4436 ctx context.Context,
4437 id string,
4438 request CreateTaskBlockRequest,
4439) (TaskBlockRecord, error) {
4440 var response contract.TaskBlockResponse
4441 if err := c.doJSON(ctx, http.MethodPost, taskBlocksPath(id), nil, request, &response); err != nil {
4442 return TaskBlockRecord{}, err
4443 }
4444 return response.Block, nil
4445}
4446
4447func (c *unixSocketClient) BlockTaskAsAgent(
4448 ctx context.Context,

Callers

nothing calls this directly

Calls 2

doJSONMethod · 0.95
taskBlocksPathFunction · 0.85

Tested by

no test coverage detected