You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/modules/ROOT/pages/module-devhub.adoc
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,9 +103,9 @@ To add the new feature, you will either create or edit the following files. Use
103
103
104
104
==== Create Java records beans
105
105
106
-
Create a new Java record, `Email.java` in the `src/main/java/org/parasol/model` directory to carry email data in a concise and immutable way.
106
+
Create a new Java record, `Email.java` in the `src/main/java/org/parasol/model` folder to carry email data in a concise and immutable way.
107
107
108
-
To create this file, right-click on the `model` directory in the file tree, then select "New File..." and enter the name of the new file `Email.java`. The empty file will open.
108
+
To create this file, right-click on the `model` folder in the file tree, then select "New File..." and enter the name of the new file `Email.java`. The empty file will open.
109
109
110
110
image::devhub/new-file.png[new-file, 500]
111
111
@@ -124,7 +124,7 @@ public record Email(String text) { }
124
124
Where is the Save button? VS Code will autosave your changes, that is why you can’t find a SAVE button - no more losing code because you forgot to save. You can undo with *CTRL-Z* (or *CMD-Z* on a Mac) or by using the `Edit -> Undo` menu option.
125
125
====
126
126
127
-
Next, create a new Java record, `EmailResponse.java` in the `src/main/java/org/parasol/model` directory to store the response from the LLM. Copy the following code and paste it into the `EmailResponse.java` file.
127
+
Next, create a new Java record, `EmailResponse.java` in the `src/main/java/org/parasol/model` folder to store the response from the LLM. Copy the following code and paste it into the `EmailResponse.java` file.
128
128
129
129
[.console-input]
130
130
[source,java,subs="+attributes,macros+"]
@@ -136,7 +136,7 @@ public record EmailResponse(String subject, String message) { }
136
136
137
137
==== Create Java AI service
138
138
139
-
Create a new Java file, `EmailService.java` in the `src/main/java/org/parasol/ai` directory to serve as the AI Service connection point between your application and the LLM. Copy the following code and paste it into the `EmailService.java` file.
139
+
Create a new Java file, `EmailService.java` in the `src/main/java/org/parasol/ai` folder to serve as the AI Service connection point between your application and the LLM. Copy the following code and paste it into the `EmailService.java` file.
140
140
141
141
[.console-input]
142
142
[source,java,subs="+attributes,macros+"]
@@ -172,7 +172,7 @@ public interface EmailService {
172
172
173
173
==== Create Jakarta REST resource
174
174
175
-
Create a new Java file, `EmailResource.java` in the `src/main/java/org/parasol/resources` directory to serve a new REST endpoint. Copy the following code and paste it into the `EmailResource.java` file.
175
+
Create a new Java file, `EmailResource.java` in the `src/main/java/org/parasol/resources` folder to serve a new REST endpoint. Copy the following code and paste it into the `EmailResource.java` file.
176
176
177
177
[.console-input]
178
178
[source,java,subs="+attributes,macros+"]
@@ -208,7 +208,7 @@ public class EmailResource {
208
208
209
209
==== Add new LLM model configurations
210
210
211
-
Open the existing `application.properties` file in the `src/main/resources` directory to append the following Langchain4j configuration values.
211
+
Open the existing `application.properties` file in the `src/main/resources` folder to append the following Langchain4j configuration values.
212
212
213
213
[.console-input]
214
214
[source,properties,subs="+attributes,macros+"]
@@ -232,7 +232,7 @@ Let's update the frontend React web application to give our customer service rep
232
232
233
233
==== Create new React TypeScript component
234
234
235
-
Create a new `EmailGenerate` directory in the `src/main/webui/src/app/components` directory. Also, create a new TypeScript XML file, `EmailGenerate.tsx` in the `src/main/webui/src/app/components/EmailGenerate` directory to render the output of the LLM in the email subject and body content. Copy the following code and paste it into the EmailGenerate.tsx file.
235
+
Create a new `EmailGenerate` folder in the `src/main/webui/src/app/components` folder. Also, create a new TypeScript XML file, `EmailGenerate.tsx` in the `src/main/webui/src/app/components/EmailGenerate` folder to render the output of the LLM in the email subject and body content. Copy the following code and paste it into the EmailGenerate.tsx file.
236
236
237
237
[.console-input]
238
238
[source,javascript,subs="+attributes,macros+"]
@@ -325,7 +325,7 @@ This interface allows customer service representatives to copy and paste the cus
325
325
326
326
==== Add a new menu item in the navigation bar
327
327
328
-
Open the `routes.tsx` file in the `src/main/webui/src/app` directory and `uncomment` the following code out in line *8* and *89 - 95* to show the new menu item.
328
+
Open the `routes.tsx` file in the `src/main/webui/src/app` folder and `uncomment` the following code out in line *8* and *89 - 95* to show the new menu item.
329
329
330
330
[NOTE]
331
331
====
@@ -410,7 +410,7 @@ Create a new pull request (PR) to add the new Gen AI feature in the Parasol Insu
410
410
411
411
Click on the *Source Control* icon. Then, follow the next steps.
412
412
413
-
* Add a *Message* (e.g., `Add a new email feature`) for the commit.
413
+
* Add a *Message* (e.g., `Add a new Gen AI feature`) for the commit.
0 commit comments