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

Method NetworkSend

internal/cli/client.go:2180–2194  ·  view source on GitHub ↗
(ctx context.Context, request NetworkSendRequest)

Source from the content-addressed store, hash-verified

2178}
2179
2180func (c *unixSocketClient) NetworkSend(ctx context.Context, request NetworkSendRequest) (NetworkSendRecord, error) {
2181 var response struct {
2182 Message NetworkSendRecord `json:"message"`
2183 }
2184 path, err := networkBasePath(request.WorkspaceID)
2185 if err != nil {
2186 return NetworkSendRecord{}, err
2187 }
2188 body := request
2189 body.WorkspaceID = ""
2190 if err := c.doJSON(ctx, http.MethodPost, path+"/send", nil, body, &response); err != nil {
2191 return NetworkSendRecord{}, err
2192 }
2193 return response.Message, nil
2194}
2195
2196func (c *unixSocketClient) NetworkInbox(
2197 ctx context.Context,

Callers 1

Calls 2

doJSONMethod · 0.95
networkBasePathFunction · 0.85

Tested by 1