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

Method RefreshSessionSoul

internal/cli/client.go:2834–2848  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	request SessionSoulRefreshRequest,
)

Source from the content-addressed store, hash-verified

2832}
2833
2834func (c *unixSocketClient) RefreshSessionSoul(
2835 ctx context.Context,
2836 id string,
2837 request SessionSoulRefreshRequest,
2838) (AgentSoulRecord, error) {
2839 var response AgentSoulRecord
2840 path, err := c.sessionScopedPath(ctx, id, "/soul/refresh")
2841 if err != nil {
2842 return AgentSoulRecord{}, err
2843 }
2844 if err := c.doJSON(ctx, http.MethodPost, path, nil, request, &response); err != nil {
2845 return AgentSoulRecord{}, err
2846 }
2847 return response, nil
2848}
2849
2850func (c *unixSocketClient) StopSession(ctx context.Context, id string) error {
2851 path, err := c.sessionScopedPath(ctx, id, "/stop")

Callers

nothing calls this directly

Calls 2

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95

Tested by

no test coverage detected