Project

General

Profile

SendRequest() method » History » Version 3

Tomislav Pleše, 09/20/2025 12:17 PM

1 1 Tomislav Pleše
# SendRequest() method
2 2 Tomislav Pleše
3
Cases:
4
5
1. Root Point - First Prompt
6
    * FE - Create new Point
7 3 Tomislav Pleše
    * FE - Show new Point on Screen - only the Prompt
8
* FE - Create Context - message list of previous Points (Prompt+Response). Since, there is only this first Prompt, add only that
9 2 Tomislav Pleše
    * FE - Send new Point to BE
10
    * BE - Save new Point to DB
11
    * BE - Send Prompt to OpenAI
12
    * BE - Receive the Response from OpenAI
13
    * BE - Save Response to DB (with the new Point)
14
    * BE- Send the new Point (with updated Response) to FE
15
    * FE - Show updated new Point on Screen - both Prompt and Response
16
17 1 Tomislav Pleše
2. Existing Point - Second prompt
18 3 Tomislav Pleše
    * FE - Create new Point
19
    * FE - Show new Point on Screen, under previous Point -  only the Prompt
20
* FE - Create Context - message list of previous Points (Prompt+Response)
21
    * FE - Send new Point and the messageList to BE
22
    * BE - Save new Point to DB
23
    * BE - Send Prompt to OpenAI
24
    * BE - Receive the Response from OpenAI
25
    * BE - Save Response to DB (with the new Point)
26
    * BE- Send the new Point (with updated Response) to FE
27
    * FE - Show updated new Point on Screen - both Prompt and Response
28 2 Tomislav Pleše
3. New shard - prompt
29
4. Existing Shard - prompt