discourse-ai/spec/lib/modules/ai_bot/tools
Sam 5b6d39a206
FEATURE: flexible image handling within messages (#1214)
* DEV: refactor bot internals

This introduces a proper object for bot context, this makes
it simpler to improve context management as we go cause we
have a nice object to work with

Starts refactoring allowing for a single message to have
multiple uploads throughout

* transplant method to message builder

* chipping away at inline uploads

* image support is improved but not fully fixed yet

partially working in anthropic, still got quite a few dialects to go

* open ai and claude are now working

* Gemini is now working as well

* fix nova

* more dialects...

* fix ollama

* fix specs

* update artifact fixed

* more tests

* spam scanner

* pass more specs

* bunch of specs improved

* more bug fixes.

* all the rest of the tests are working

* improve tests coverage and ensure custom tools are aware of new context object

* tests are working, but we need more tests

* resolve merge conflict

* new preamble and expanded specs on ai tool

* remove concept of "standalone tools"

This is no longer needed, we can set custom raw, tool details are injected into tool calls
2025-03-31 12:39:07 -03:00
..
create_artifact_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
dall_e_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
db_schema_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
discourse_meta_search_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_file_content_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_pull_request_diff_spec.rb FEATURE: implement thinking token support (#1155) 2025-03-04 12:22:30 +11:00
github_search_code_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
github_search_files_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
google_spec.rb FEATURE: allow scoping of google tool queries (#852) 2024-10-23 16:55:10 +11:00
image_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
javascript_evaluator_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
list_categories_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
list_tags_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
random_picker_spec.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00
read_artifact_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
read_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
search_settings_spec.rb FEATURE: improve site setting search (#780) 2024-08-29 16:05:38 +10:00
search_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
setting_context_spec.rb FIX: support case insensitive setting lookup (#795) 2024-09-10 15:21:03 +10:00
summarize_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
time_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00
tool_spec.rb FIX: never provide tools with invalid UTF-8 strings (#692) 2024-06-27 14:06:52 +10:00
update_artifact_spec.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
web_browser_spec.rb DEV: Remove old code now that features rely on LlmModels. (#729) 2024-07-30 13:44:57 -03:00