mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-04-22 23:08:53 +02:00
# Description of Changes Redesign AI engine so that it autogenerates the `tool_models.py` file from the OpenAPI spec so the Python has access to the Java API parameters and the full list of Java tools that it can run. CI ensures that whenever someone modifies a tool endpoint that the AI enigne tool models get updated as well (the dev gets told to run `task engine:tool-models`). There's loads of advantages to having the Java be the one that actually executes the tools, rather than the frontend as it was previously set up to theoretically use: - The AI gets much better descriptions of the params from the API docs - It'll be usable headless in the future so a Java daemon could run to execute ops on files in a folder without the need for the UI to run - The Java already has all the logic it needs to execute the tools - We don't need to parse the TypeScript to find the API (which is hard because the TS wasn't designed to be computer-read to extract the API) I've also hooked up the prototype frontend to ensure it's working properly, and have built it in a way that all the tool names can be translated properly, which was always an issue with previous prototypes of this. --------- Co-authored-by: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Co-authored-by: EthanHealy01 <80844253+EthanHealy01@users.noreply.github.com>
48 lines
1020 B
INI
48 lines
1020 B
INI
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
indent_style = space
|
|
indent_size = 4
|
|
end_of_line = lf
|
|
max_line_length = 127
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
[*.java]
|
|
indent_size = 4
|
|
max_line_length = 100
|
|
|
|
[*.py]
|
|
indent_size = 4
|
|
max_line_length = 120
|
|
|
|
[*.gradle]
|
|
indent_size = 4
|
|
|
|
[*.html]
|
|
indent_size = 2
|
|
insert_final_newline = false
|
|
trim_trailing_whitespace = false
|
|
|
|
[{*.js,*.jsx,*.mjs,*.ts,*.tsx}]
|
|
indent_size = 2
|
|
|
|
[*.css]
|
|
# CSS files typically use an indent size of 2 spaces for better readability and alignment with community standards.
|
|
indent_size = 2
|
|
|
|
[*.{yml,yaml}]
|
|
# YAML files use an indent size of 2 spaces to maintain consistency with common YAML formatting practices.
|
|
indent_size = 2
|
|
insert_final_newline = false
|
|
trim_trailing_whitespace = false
|
|
|
|
[*.json]
|
|
# JSON files use an indent size of 2 spaces, which is the standard for JSON formatting.
|
|
indent_size = 2
|
|
|
|
[*.jsonc]
|
|
# JSONC (JSON with comments) files also follow the standard JSON formatting with an indent size of 2 spaces.
|
|
indent_size = 2
|