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

Method NetworkThread

internal/cli/client.go:2025–2042  ·  view source on GitHub ↗
(
	ctx context.Context,
	workspaceRef string,
	channel string,
	threadID string,
)

Source from the content-addressed store, hash-verified

2023}
2024
2025func (c *unixSocketClient) NetworkThread(
2026 ctx context.Context,
2027 workspaceRef string,
2028 channel string,
2029 threadID string,
2030) (NetworkThreadRecord, error) {
2031 path, err := networkThreadPath(workspaceRef, channel, threadID)
2032 if err != nil {
2033 return NetworkThreadRecord{}, err
2034 }
2035 var response struct {
2036 Thread NetworkThreadRecord `json:"thread"`
2037 }
2038 if err := c.doJSON(ctx, http.MethodGet, path, nil, nil, &response); err != nil {
2039 return NetworkThreadRecord{}, err
2040 }
2041 return response.Thread, nil
2042}
2043
2044func (c *unixSocketClient) NetworkThreadMessages(
2045 ctx context.Context,

Callers 1

Calls 2

doJSONMethod · 0.95
networkThreadPathFunction · 0.85

Tested by 1