discourse-ai/lib/ai_bot/tools
Hoa Nguyen b60926c6e6
FEATURE: Tool name validation (#842)
* FEATURE: Tool name validation

- Add unique index to the name column of the ai_tools table
- correct our tests for AiToolController
- tool_name field which will be used to represent to LLM
- Add tool_name to Tools's presets
- Add duplicate tools validation for AiPersona
- Add unique constraint to the name column of the ai_tools table

* DEV: Validate duplicate tool_name between builin tools and custom tools

* lint

* chore: fix linting

* fix conlict mistakes

* chore: correct icon class

* chore: fix failed specs

* Add max_length to tool_name

* chore: correct the option name

* lintings

* fix lintings
2025-02-07 14:34:47 +11:00
..
create_artifact.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
custom.rb FEATURE: Tool name validation (#842) 2025-02-07 14:34:47 +11:00
dall_e.rb FEATURE: add aspect ratio support to DallE 3 (#647) 2024-05-28 16:21:40 +10:00
db_schema.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
discourse_meta_search.rb FIX: Load categories from search response (#612) 2024-05-14 17:13:25 +03:00
github_file_content.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_pull_request_diff.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_search_code.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
github_search_files.rb FEATURE: improved tooling (#651) 2024-05-30 06:33:50 +10:00
google.rb FEATURE: allow scoping of google tool queries (#852) 2024-10-23 16:55:10 +11:00
image.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
javascript_evaluator.rb FEATURE: JavaScript evaluation tool (#630) 2024-05-21 07:57:01 +10:00
list_categories.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
list_tags.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
option.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
random_picker.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
read.rb FEATURE: allow access to private topics if tool permits (#673) 2024-06-19 15:49:36 +10:00
read_artifact.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
search.rb FIX: display search correctly, bug when stripping XML (#668) 2024-06-14 15:28:40 +10:00
search_settings.rb FEATURE: improve site setting search (#780) 2024-08-29 16:05:38 +10:00
setting_context.rb FIX: support case insensitive setting lookup (#795) 2024-09-10 15:21:03 +10:00
summarize.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
time.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
tool.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
update_artifact.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
web_browser.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00