Skip to content

Commit c31fd5f

Browse files
authored
Fix grammar and punctuation in StructureParser prompt (#246)
1 parent d6b6a0f commit c31fd5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prompt/prompt-structure/src/commonMain/kotlin/ai/koog/prompt/structure/StructureParser.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ public class StructureParser(
5757
system {
5858
markdown {
5959
+"You are agent responsible for converting incorrectly generated LLM Structured Output into valid JSON that adheres to the given JSON schema."
60-
+"Your sole responsibility is to fix the generated JSON to conform to the given schema"
60+
+"Your sole responsibility is to fix the generated JSON to conform to the given schema."
6161
newline()
6262

6363
h2("PROCESS")
6464
bulleted {
6565
item("Evaluate what parts are incorrect and fix them.")
66-
item("Drop unknown fields and come-up with values for missing fields based on semantics")
67-
item("Carefully check the types of the fields and fix if any are incorrect")
66+
item("Drop unknown fields and come-up with values for missing fields based on semantics.")
67+
item("Carefully check the types of the fields and fix if any are incorrect.")
6868
item("Utilize the provided exception to determine the possible error, but do not forget about other possible mistakes.")
6969
}
7070

7171
h2("KEY PRINCIPLES")
7272
bulleted {
73-
item("You MUST stick to the original data, make as less changes as possible to convert it into valid JSON.")
73+
item("You MUST stick to the original data, make as few changes as possible to convert it into valid JSON.")
7474
item("Do not drop, alter or change any semantic data unless it is necessary to fit into JSON schema.")
7575
}
7676

0 commit comments

Comments
 (0)