From 5f11b9ed2df5b3ce80be637122582c270e4d0ce3 Mon Sep 17 00:00:00 2001 From: Prachi Shah Date: Wed, 29 Jan 2025 11:03:05 +0000 Subject: [PATCH] [fix]: [ML-575]: make conversationID optional parameter in chat (#3344) * make conversationID optional parameter in chat * generate conversation ID in backend * Merge branch 'main' into ML-575 * gci run * gci run * gci run * gci run * lint error fix * gci run * resolve comments * re_generate to regenerate * gci run * lint errors fix * lint error fix * update actions struct correctly * update actions struct * lint error fix * chat struct and two new enums for actions * merged * merge with ML-562 * temp * done * done * remove redundant file * fixed lint errors in submodule * lint error fix * Update wire_gen.go * Update wire_gen.go * fix lint errors * updated error message * changed loc of enum definitions * new endpoint /chat * new type chat * original * to original * made required changes * trial * fix lint errors-3 * fix lint errors-2 * fix lint errors * 3 new enums for stagetype, messagetype, role * enum types for stagetype, role and messagetype * role enum and message type enum * ML-562: New enum --- app/api/controller/aiagent/types/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/aiagent/types/chat.go b/app/api/controller/aiagent/types/chat.go index afd43ba66..4d9699aa6 100644 --- a/app/api/controller/aiagent/types/chat.go +++ b/app/api/controller/aiagent/types/chat.go @@ -22,7 +22,7 @@ import ( // Chat represents a chat conversation with a unique ID, prompt, metadata, and conversation history. type Chat struct { - ConversationID uuid.UUID `json:"conversation_uuid"` + ConversationID uuid.UUID `json:"conversation_uuid,omitempty"` Prompt string `json:"prompt"` Metadata map[string]string `json:"metadata"` Conversation []Conversation `json:"conversation"`