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

Method StopSession

internal/cli/client.go:2850–2863  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

2848}
2849
2850func (c *unixSocketClient) StopSession(ctx context.Context, id string) error {
2851 path, err := c.sessionScopedPath(ctx, id, "/stop")
2852 if err != nil {
2853 return err
2854 }
2855 return c.doJSON(
2856 ctx,
2857 http.MethodPost,
2858 path,
2859 nil,
2860 nil,
2861 nil,
2862 )
2863}
2864
2865func (c *unixSocketClient) DeleteSession(ctx context.Context, id string) error {
2866 path, err := c.sessionScopedPath(ctx, id, "")

Callers 1

Calls 2

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95

Tested by 1