discourse-ai/spec/lib/modules/ai_bot
Sam e4b326c711
FEATURE: support Chat with AI Persona via a DM (#488)
Add support for chat with AI personas

- Allow enabling chat for AI personas that have an associated user
- Add new setting `allow_chat` to AI persona to enable/disable chat
- When a message is created in a DM channel with an allowed AI persona user, schedule a reply job
- AI replies to chat messages using the persona's `max_context_posts` setting to determine context
- Store tool calls and custom prompts used to generate a chat reply on the `ChatMessageCustomPrompt` table
- Add tests for AI chat replies with tools and context

At the moment unlike posts we do not carry tool calls in the context.

No @mention support yet for ai personas in channels, this is future work
2024-05-06 09:49:02 +10:00
..
jobs/regular DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
personas FEATURE: Add Question Consolidator for robust Upload support in Personas (#596) 2024-04-30 13:49:21 +10:00
tools FIX: throwing away first file in diff (#573) 2024-04-11 13:26:58 +10:00
bot_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
entry_point_spec.rb FEATURE: Enhance AI debugging capabilities and improve interface adjustments (#577) 2024-04-15 23:22:06 +10:00
playground_spec.rb FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
question_consolidator_spec.rb FEATURE: Add Question Consolidator for robust Upload support in Personas (#596) 2024-04-30 13:49:21 +10:00
site_setting_extension_spec.rb FEATURE: defer creation of bot users (#258) 2023-10-23 17:00:58 +11:00