discourse-ai/lib/ai_bot/tools
Sam 0d7f353284
FEATURE: AI artifacts (#898)
This is a significant PR that introduces AI Artifacts functionality to the discourse-ai plugin along with several other improvements. Here are the key changes:

1. AI Artifacts System:
   - Adds a new `AiArtifact` model and database migration
   - Allows creation of web artifacts with HTML, CSS, and JavaScript content
   - Introduces security settings (`strict`, `lax`, `disabled`) for controlling artifact execution
   - Implements artifact rendering in iframes with sandbox protection
   - New `CreateArtifact` tool for AI to generate interactive content

2. Tool System Improvements:
   - Adds support for partial tool calls, allowing incremental updates during generation
   - Better handling of tool call states and progress tracking
   - Improved XML tool processing with CDATA support
   - Fixes for tool parameter handling and duplicate invocations

3. LLM Provider Updates:
   - Updates for Anthropic Claude models with correct token limits
   - Adds support for native/XML tool modes in Gemini integration
   - Adds new model configurations including Llama 3.1 models
   - Improvements to streaming response handling

4. UI Enhancements:
   - New artifact viewer component with expand/collapse functionality
   - Security controls for artifact execution (click-to-run in strict mode)
   - Improved dialog and response handling
   - Better error management for tool execution

5. Security Improvements:
   - Sandbox controls for artifact execution
   - Public/private artifact sharing controls
   - Security settings to control artifact behavior
   - CSP and frame-options handling for artifacts

6. Technical Improvements:
   - Better post streaming implementation
   - Improved error handling in completions
   - Better memory management for partial tool calls
   - Enhanced testing coverage

7. Configuration:
   - New site settings for artifact security
   - Extended LLM model configurations
   - Additional tool configuration options

This PR significantly enhances the plugin's capabilities for generating and displaying interactive content while maintaining security and providing flexible configuration options for administrators.
2024-11-19 09:22:39 +11:00
..
create_artifact.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
custom.rb FEATURE: support chain halting and upload creation support (#821) 2024-10-09 08:17:45 +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 FEATURE: optional tool detail blocks (#662) 2024-06-11 18:14:14 +10: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
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 FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +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