Skip to content

Instantly share code, notes, and snippets.

@maxandersen
Created January 9, 2024 10:54
Show Gist options
  • Save maxandersen/402f375c06ba38ea517be5ff4a52c63d to your computer and use it in GitHub Desktop.
Save maxandersen/402f375c06ba38ea517be5ff4a52c63d to your computer and use it in GitHub Desktop.
Overall, the `devhelper.java` file combines Quarkus, LangChain4j, and custom tools to provide an interactive and AI-powered assistance experience for developers working on the project.
Please enter your question:
could you generate a readme.adoc to introduce the project?
Thinking...
2024-01-09 10:22:15,230 ERROR [io.qua.lan.run.too.QuarkusToolExecutor] (main) com.fasterxml.jackson.databind.JsonMappingException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
at [Source: (String)"{
"filename": "README.adoc",
"content": "= Project README\n\nThis project is a development helper tool that uses Quarkus and LangChain4j to provide assistance in understanding and updating code.\n\n## Usage\n\nTo run the project, you need to have Java 17 or later installed on your machine.\n\n1. Clone the repository\n2. Open a terminal and navigate to the project directory\n3. Run the following command:\n\n ```
jbang devhelper.java
```\n\n This will start the development helper too"[truncated 629 chars]; line: 3, column: 391] (through reference chain: devhelper$FileManager$$QuarkusToolArgumentMapper$createOrUpdateFile_3c4e7480b55ec3b687aa447d4d032af77ac129cb["content"])
2024-01-09 10:22:15,233 ERROR [io.qua.lan.run.ais.AiServiceMethodImplementationSupport] (main) Execution of devhelper$ProjectHelper#ask failed: java.lang.IllegalArgumentException: params '{
"filename": "README.adoc",
"content": "= Project README\n\nThis project is a development helper tool that uses Quarkus and LangChain4j to provide assistance in understanding and updating code.\n\n## Usage\n\nTo run the project, you need to have Java 17 or later installed on your machine.\n\n1. Clone the repository\n2. Open a terminal and navigate to the project directory\n3. Run the following command:\n\n ```
jbang devhelper.java
```\n\n This will start the development helper tool.\n\n4. Follow the prompts to ask questions or perform file operations using the provided commands.\n5. Type \"exit\" or \"quit\" to exit the tool.\n\n## Features\n\n- Interactive AI-powered assistance\n- User-friendly command-line interface\n- File management tools\n\n## Dependencies\n\nThe project has the following dependencies:\n\n- Quarkus platform (version 3.6.4)\n- Quarkus LangChain4j (version 999-SNAPSHOT)\n- Quarkus Picocli\n\nYou can find the complete list of dependencies in the `devhelper.java` file.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more information.\n"
}' from request do not map onto the parameters needed by 'devhelper_FileManager_ClientProxy#createOrUpdateFile'
at io.quarkiverse.langchain4j.runtime.tool.QuarkusToolExecutor.invalidMethodParams(QuarkusToolExecutor.java:137)
at io.quarkiverse.langchain4j.runtime.tool.QuarkusToolExecutor.prepareArguments(QuarkusToolExecutor.java:95)
at io.quarkiverse.langchain4j.runtime.tool.QuarkusToolExecutor.execute(QuarkusToolExecutor.java:43)
at io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport.doImplement(AiServiceMethodImplementationSupport.java:182)
at io.quarkiverse.langchain4j.runtime.aiservice.AiServiceMethodImplementationSupport.implement(AiServiceMethodImplementationSupport.java:74)
at devhelper$ProjectHelper$$QuarkusImpl.ask(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment