( ctx context.Context, id string, request SessionSoulRefreshRequest, )
| 2832 | } |
| 2833 | |
| 2834 | func (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 | |
| 2850 | func (c *unixSocketClient) StopSession(ctx context.Context, id string) error { |
| 2851 | path, err := c.sessionScopedPath(ctx, id, "/stop") |
nothing calls this directly
no test coverage detected