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

Method AgentChannelSend

internal/cli/client.go:5119–5139  ·  view source on GitHub ↗
(
	ctx context.Context,
	channel string,
	request AgentChannelSendRequest,
	credentials agentidentity.Credentials,
)

Source from the content-addressed store, hash-verified

5117}
5118
5119func (c *unixSocketClient) AgentChannelSend(
5120 ctx context.Context,
5121 channel string,
5122 request AgentChannelSendRequest,
5123 credentials agentidentity.Credentials,
5124) (AgentChannelMessageRecord, error) {
5125 var response contract.AgentChannelMessageResponse
5126 path := "/api/agent/channels/" + url.PathEscape(strings.TrimSpace(channel)) + "/send"
5127 if err := c.doAgentJSON(
5128 ctx,
5129 http.MethodPost,
5130 path,
5131 nil,
5132 request,
5133 credentials,
5134 &response,
5135 ); err != nil {
5136 return AgentChannelMessageRecord{}, err
5137 }
5138 return response.Message, nil
5139}
5140
5141func (c *unixSocketClient) AgentChannelReply(
5142 ctx context.Context,

Calls 1

doAgentJSONMethod · 0.95