MCPcopy Index your code
hub / github.com/coder/coder / UpdateUserChatDebugLogging

Method UpdateUserChatDebugLogging

codersdk/chats.go:3004–3014  ·  view source on GitHub ↗

UpdateUserChatDebugLogging updates the current user's chat debug logging preference.

(ctx context.Context, req UpdateUserChatDebugLoggingRequest)

Source from the content-addressed store, hash-verified

3002// UpdateUserChatDebugLogging updates the current user's chat debug
3003// logging preference.
3004func (c *ExperimentalClient) UpdateUserChatDebugLogging(ctx context.Context, req UpdateUserChatDebugLoggingRequest) error {
3005 res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/user-debug-logging", req)
3006 if err != nil {
3007 return err
3008 }
3009 defer res.Body.Close()
3010 if res.StatusCode != http.StatusNoContent {
3011 return ReadBodyAsError(res)
3012 }
3013 return nil
3014}
3015
3016// GetChatDebugRuns returns the debug runs for a chat.
3017func (c *ExperimentalClient) GetChatDebugRuns(ctx context.Context, chatID uuid.UUID) ([]ChatDebugRunSummary, error) {

Callers 1

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 1