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

Method BlockTaskAsAgent

internal/cli/client.go:4447–4466  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	request CreateTaskBlockRequest,
	credentials agentidentity.Credentials,
)

Source from the content-addressed store, hash-verified

4445}
4446
4447func (c *unixSocketClient) BlockTaskAsAgent(
4448 ctx context.Context,
4449 id string,
4450 request CreateTaskBlockRequest,
4451 credentials agentidentity.Credentials,
4452) (TaskBlockRecord, error) {
4453 var response contract.TaskBlockResponse
4454 if err := c.doAgentJSON(
4455 ctx,
4456 http.MethodPost,
4457 taskBlocksPath(id),
4458 nil,
4459 request,
4460 credentials,
4461 &response,
4462 ); err != nil {
4463 return TaskBlockRecord{}, err
4464 }
4465 return response.Block, nil
4466}
4467
4468func (c *unixSocketClient) ListTaskBlocks(
4469 ctx context.Context,

Callers

nothing calls this directly

Calls 2

doAgentJSONMethod · 0.95
taskBlocksPathFunction · 0.85

Tested by

no test coverage detected