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

Method NetworkInbox

internal/cli/client.go:2196–2219  ·  view source on GitHub ↗
(
	ctx context.Context,
	workspaceRef string,
	sessionID string,
)

Source from the content-addressed store, hash-verified

2194}
2195
2196func (c *unixSocketClient) NetworkInbox(
2197 ctx context.Context,
2198 workspaceRef string,
2199 sessionID string,
2200) ([]NetworkEnvelopeRecord, error) {
2201 var response struct {
2202 Messages []NetworkEnvelopeRecord `json:"messages"`
2203 }
2204 path, err := networkBasePath(workspaceRef)
2205 if err != nil {
2206 return nil, err
2207 }
2208 if err := c.doJSON(
2209 ctx,
2210 http.MethodGet,
2211 path+"/inbox",
2212 networkInboxValues(sessionID),
2213 nil,
2214 &response,
2215 ); err != nil {
2216 return nil, err
2217 }
2218 return response.Messages, nil
2219}
2220
2221func (c *unixSocketClient) PromoteNetworkThreadTask(
2222 ctx context.Context,

Callers 1

Calls 3

doJSONMethod · 0.95
networkBasePathFunction · 0.85
networkInboxValuesFunction · 0.85

Tested by 1