discourse-ai/lib/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.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
custom.rb FEATURE: Tool name validation (#842) 2025-02-07 14:34:47 +11:00
dall_e.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03: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 FEATURE: implement thinking token support (#1155) 2025-03-04 12:22:30 +11: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 FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03: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: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
read_artifact.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
search.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03: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: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03: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 FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
update_artifact.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
web_browser.rb REFACTOR: Simplify tool invocation by removing bot_user and llm parameters (#603) 2024-05-07 21:55:46 +10:00