Skip to content

Commit b8ca884

Browse files
authored
Update README.md
1 parent e5a4076 commit b8ca884

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed

README.md

+103
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ grpcPort: 8083
104104

105105

106106
## LLM Prompts
107+
LLM: ChatGPT o1-mini
107108

108109
Создай Go-функции, которые используют библиотеку Squirrel для взаимодействия с базой данных. Функции должны быть гибкими и безопасными, принимая в качестве параметров имя таблицы, условия запроса и необходимые данные
109110
для выполнения операций. Обеспечь следующие требования:
@@ -135,7 +136,109 @@ grpcPort: 8083
135136
https://github.com/2Delight/mline/commit/88c529d5e10b095eaff7eebab3c4d4423d2ad147
136137

137138

139+
*“Создай файл Protocol Buffers (.proto) с синтаксисом proto3, пакетом gateway и опцией go_package равной "gateway-api/pkg/gateway". Импортируй файлы "google/api/annotations.proto" и "google/protobuf/timestamp.proto".
138140

141+
Определи сервис GatewayService с следующими методами:
142+
1. GetSpecification
143+
Вход: GetSpecificationRequest
144+
Выход: Specification
145+
HTTP маршрут: GET "/gateway/specifications/{id}"
146+
147+
2. UpdateSpecification
148+
Вход: UpdateSpecificationRequest
149+
Выход: UpdateSpecificationResponse
150+
HTTP маршрут: PUT "/gateway/specifications/{id}"
151+
152+
3. GetStatus
153+
Вход: GetStatusRequest
154+
Выход: Status
155+
HTTP маршрут: GET "/gateway/specifications/{id}/status"
156+
157+
4. UpdateStatus
158+
Вход: UpdateStatusRequest
159+
Выход: StatusUpdateResponse
160+
HTTP маршрут: POST "/gateway/specifications/{id}/status"
161+
162+
5. ValidateSpecification
163+
Вход: ValidateSpecificationRequest
164+
Выход: ValidationResult
165+
HTTP маршрут: POST "/gateway/specifications/{id}/validate"
166+
167+
6. GetHello
168+
Вход: GetHelloRequest
169+
Выход: GetHelloResponse
170+
HTTP маршрут: GET "/ping"
171+
172+
Определи следующие сообщения:
173+
174+
Specification
175+
int64 id = 1;
176+
string name = 2;
177+
string content = 3; // YAML content
178+
string git_path = 4;
179+
string status = 5;
180+
Timestamp created_at = 6;
181+
Timestamp updated_at = 7;
182+
183+
CommitPushResult
184+
string commit_hash = 1;
185+
bool is_success = 2;
186+
187+
MLDevResult
188+
bool is_success = 1;
189+
repeated string artifacts = 2;
190+
191+
Status
192+
int64 id = 1;
193+
string name = 2; // “committed”, “completed”, etc.
194+
195+
StatusUpdate
196+
string new_status = 1;
197+
198+
StatusUpdateResponse
199+
bool is_success = 1;
200+
201+
ValidationResult
202+
bool is_valid = 1;
203+
repeated Error errors = 2;
204+
repeated Hint hints = 3;
205+
206+
Error
207+
string code = 1;
208+
string message = 2;
209+
210+
Hint
211+
string message = 1;
212+
213+
GetSpecificationRequest
214+
int64 id = 1;
215+
216+
UpdateSpecificationRequest
217+
int64 id = 1;
218+
string specification_content = 2;
219+
220+
UpdateSpecificationResponse
221+
bool is_success = 1;
222+
223+
GetStatusRequest
224+
int64 id = 1;
225+
226+
UpdateStatusRequest
227+
int64 id = 1;
228+
StatusUpdate status_update = 2;
229+
230+
ValidateSpecificationRequest
231+
int64 id = 1;
232+
string specification_content = 2;
233+
234+
GetHelloRequest {}
235+
236+
GetHelloResponse
237+
string pong = 1;
238+
239+
<img width="933" alt="Screenshot 2024-12-01 at 22 01 25" src="https://github.com/user-attachments/assets/e1cd5831-87a9-4d65-ab1b-ab9b162337df">
240+
<img width="933" alt="Screenshot 2024-12-01 at 22 01 41" src="https://github.com/user-attachments/assets/e9da5d5f-a65d-4e12-80e2-e87833517e2c">
241+
<img width="933" alt="Screenshot 2024-12-01 at 22 01 56" src="https://github.com/user-attachments/assets/f831acd4-d074-491e-9f91-346939a07726">
139242

140243

141244

0 commit comments

Comments
 (0)