Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class DebugError extends Action {
"{context}\n" +
"---\n" +
"Now you should start rewriting the code:\n" +
"## file name of the code to rewrite: Write code with triple quoto. Do your best to implement THIS IN ONLY ONE FILE.";
"## file name of the code to rewrite: Write code with triple quote. Do your best to implement THIS IN ONLY ONE FILE.";

public DebugError(String name, Object context, BaseLanguageModel llm) {
super(name, context, llm);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public class WriteCode extends Action {
"Role: You are a professional engineer; the main goal is to write PEP8 compliant, elegant, modular, easy to read and maintain Python 3.9 code (but you can also use other programming language)\n" +
"ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced \"Format example\".\n" +
"\n" +
"## Code: {filename} Write code with triple quoto, based on the following list and context.\n" +
"## Code: {filename} Write code with triple quote, based on the following list and context.\n" +
"1. Do your best to implement THIS ONLY ONE FILE. ONLY USE EXISTING API. IF NO API, IMPLEMENT IT.\n" +
"2. Requirement: Based on the context, implement one following code file, note to return only in code form, your code will be part of the entire project, so please implement complete, reliable, reusable code snippets\n" +
"3. Attention1: If there is any setting, ALWAYS SET A DEFAULT VALUE, ALWAYS USE STRONG TYPE AND EXPLICIT VARIABLE.\n" +
"4. Attention2: YOU MUST FOLLOW \"Data structures and interface definitions\". DONT CHANGE ANY DESIGN.\n" +
"4. Attention2: YOU MUST FOLLOW \"Data structures and interface definitions\". DON'T CHANGE ANY DESIGN.\n" +
"5. Think before writing: What should be implemented and provided in this document?\n" +
"6. CAREFULLY CHECK THAT YOU DONT MISS ANY NECESSARY CLASS/FUNCTION IN THIS FILE.\n" +
"6. CAREFULLY CHECK THAT YOU DON'T MISS ANY NECESSARY CLASS/FUNCTION IN THIS FILE.\n" +
"7. Do not use public member functions that do not exist in your design.\n" +
"\n" +
"-----\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class WriteDesign extends Action {
"\n" +
"## Implementation approach: Provide as Plain text. Analyze the difficult points of the requirements, select the appropriate open-source framework.\n" +
"\n" +
"## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"\n" +
"## File list: Provided as Python list[str], the list of ONLY REQUIRED files needed to write the program(LESS IS MORE!). Only need relative paths, comply with PEP8 standards. ALWAYS write a main.py or app.py here\n" +
"\n" +
Expand Down Expand Up @@ -98,7 +98,7 @@ public class WriteDesign extends Action {
"\n" +
"## Implementation approach: Provide as Plain text. Analyze the difficult points of the requirements, select the appropriate open-source framework.\n" +
"\n" +
"## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"\n" +
"## File list: Provided as Python list[str], the list of ONLY REQUIRED files needed to write the program(LESS IS MORE!). Only need relative paths, comply with PEP8 standards. ALWAYS write a main.py or app.py here\n" +
"\n" +
Expand Down Expand Up @@ -160,7 +160,7 @@ public class WriteDesign extends Action {
"\n" +
"## Implementation approach: Provide as Plain text. Analyze the difficult points of the requirements, select the appropriate open-source framework.\n" +
"\n" +
"## Python package name: Provide as Python str with python triple quoto, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"## Python package name: Provide as Python str with python triple quote, concise and clear, characters only use a combination of all lowercase and underscores\n" +
"\n" +
"## File list: Provided as Python list[str], the list of ONLY REQUIRED files needed to write the program(LESS IS MORE!). Only need relative paths, comply with PEP8 standards. ALWAYS write a main.py or app.py here\n" +
"\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class WritePRD extends Action {
"## Search Information\n" +
"{search_information}\n" +
"\n" +
"## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the <Campaign X> with REAL COMPETITOR NAME\n" +
"## mermaid quadrantChart code syntax example. DON'T USE QUOTES IN CODE DUE TO INVALID SYNTAX. Replace the <Campaign X> with REAL COMPETITOR NAME\n" +
"```mermaid\n" +
"quadrantChart\n" +
" title Reach and engagement of campaigns\n" +
Expand Down Expand Up @@ -87,7 +87,7 @@ public class WritePRD extends Action {
"## Search Information\n" +
"{search_information}\n" +
"\n" +
"## mermaid quadrantChart code syntax example. DONT USE QUOTO IN CODE DUE TO INVALID SYNTAX. Replace the <Campaign X> with REAL COMPETITOR NAME\n" +
"## mermaid quadrantChart code syntax example. DON'T USE QUOTES IN CODE DUE TO INVALID SYNTAX. Replace the <Campaign X> with REAL COMPETITOR NAME\n" +
"```mermaid\n" +
"quadrantChart\n" +
" title Reach and engagement of campaigns\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class WriteTest extends Action {
"```\n" +
"Note that the code to test is at {source_file_path}, we will put your test code at {workspace}/tests/{test_file_name}, and run your test code from {workspace},\n" +
"you should correctly import the necessary classes based on these file locations!\n" +
"## {test_file_name}: Write test code with triple quoto. Do your best to implement THIS ONLY ONE FILE.";
"## {test_file_name}: Write test code with triple quote. Do your best to implement THIS ONLY ONE FILE.";

public WriteTest(String name, Object context, BaseLanguageModel llm) {
super(name, context, llm);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ public void testLLM(){
"Role: You are a professional engineer; the main goal is to write PEP8 compliant, elegant, modular, easy to read and maintain Python 3.9 code (but you can also use other programming language)\n" +
"ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced \"Format example\".\n" +
"\n" +
"## Code: main.py Write code with triple quoto, based on the following list and context.\n" +
"## Code: main.py Write code with triple quote, based on the following list and context.\n" +
"1. Do your best to implement THIS ONLY ONE FILE. ONLY USE EXISTING API. IF NO API, IMPLEMENT IT.\n" +
"2. Requirement: Based on the context, implement one following code file, note to return only in code form, your code will be part of the entire project, so please implement complete, reliable, reusable code snippets\n" +
"3. Attention1: If there is any setting, ALWAYS SET A DEFAULT VALUE, ALWAYS USE STRONG TYPE AND EXPLICIT VARIABLE.\n" +
"4. Attention2: YOU MUST FOLLOW \"Data structures and interface definitions\". DONT CHANGE ANY DESIGN.\n" +
"4. Attention2: YOU MUST FOLLOW \"Data structures and interface definitions\". DON'T CHANGE ANY DESIGN.\n" +
"5. Think before writing: What should be implemented and provided in this document?\n" +
"6. CAREFULLY CHECK THAT YOU DONT MISS ANY NECESSARY CLASS/FUNCTION IN THIS FILE.\n" +
"6. CAREFULLY CHECK THAT YOU DON'T MISS ANY NECESSARY CLASS/FUNCTION IN THIS FILE.\n" +
"7. Do not use public member functions that do not exist in your design.\n" +
"\n" +
"-----\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void delete(String key) {
@PreDestroy
void destroy() {
if (null == jedisPool) {
log.info("redis is null dont need to destroy");
log.info("redis is null, doesn't need to destroy");
} else {
jedisPool.destroy();
log.info("destroy redis success");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class SummarizeSkill extends SemanticKernelSkill {

private static final String PROMPT = "[SUMMARIZATION RULES]\n" +
"DONT WASTE WORDS\n" +
"DON'T WASTE WORDS\n" +
"USE SHORT, CLEAR, COMPLETE SENTENCES.\n" +
"DO NOT USE BULLET POINTS OR DASHES.\n" +
"USE ACTIVE VOICE.\n" +
Expand Down