Skip to content

Commit 7d7b9e6

Browse files
committed
learning formatting
1 parent 6c1dd32 commit 7d7b9e6

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

api_logic_server_cli/prototypes/manager/system/genai/app_templates/app_learning/Admin-App-Resource-Learning-Prompt.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Generate the {{resource.js}} file for a React Admin application using the follow
77
### Per-Resource Files (Required)
88

99
Sample code (follow these guidelines EXACTLY):
10-
10+
```
1111
<sample-code>
1212
// begin MANDATORY imports (always generated EXACTLY)
1313
import React from 'react';
@@ -179,9 +179,10 @@ export default {
179179
create: CustomerCreate,
180180
edit: CustomerEdit,
181181
};
182-
182+
```
183183
</sample-code>
184184

185+
185186
For each resource (`Customer`, `Order` etc) and **fully** implement:
186187
* `CustomerList`
187188
* `CustomerShow`

api_logic_server_cli/prototypes/manager/system/genai/app_templates/app_learning/Admin-App-js-Learning-Prompt.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1+
App Wiring
2+
Sample code for react App.js (follow these guidelines EXACTLY):
13

2-
3-
### App Wiring
4-
5-
Sample code for react `App.js` (follow these guidelines EXACTLY):
6-
7-
```jsx
84
// begin constant imports (always included) -- generate this code EXACTLY
95
import React from 'react';
106
import { Admin, Resource, Loading } from 'react-admin'; // val? loading
@@ -59,13 +55,7 @@ const App = () => {
5955
};
6056

6157
export default App;
62-
```
63-
64-
---
65-
66-
## Response Format
67-
58+
Response Format
6859
Format the response as a JSResponseFormat:
6960

70-
class JSResponseFormat(BaseModel): # must match system/genai/prompt_inserts/response_format.prompt
71-
code : str # generated javascript code (only)
61+
class JSResponseFormat(BaseModel): # must match system/genai/prompt_inserts/response_format.prompt code : str # generated javascript code (only)

0 commit comments

Comments
 (0)