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

Function planModeToNullChatPlanMode

coderd/exp_chats.go:463–471  ·  view source on GitHub ↗
(mode codersdk.ChatPlanMode)

Source from the content-addressed store, hash-verified

461}
462
463func planModeToNullChatPlanMode(mode codersdk.ChatPlanMode) database.NullChatPlanMode {
464 if mode == "" {
465 return database.NullChatPlanMode{}
466 }
467 return database.NullChatPlanMode{
468 ChatPlanMode: database.ChatPlanMode(mode),
469 Valid: true,
470 }
471}
472
473func validateChatPlanMode(mode codersdk.ChatPlanMode) bool {
474 switch mode {

Callers 3

postChatsMethod · 0.85
patchChatMethod · 0.85
postChatMessagesMethod · 0.85

Calls 1

ChatPlanModeTypeAlias · 0.92

Tested by

no test coverage detected