Sam 8b382d6098
FEATURE: support for claude opus and sonnet (#508)
This provides new support for messages API from Claude.

It is required for latest model access.

Also corrects implementation of function calls.

* Fix message interleving

* fix broken spec

* add new models to automation
2024-03-06 06:04:37 +11:00

36 lines
881 B
Ruby

#frozen_string_literal: true
module DiscourseAi
module AiBot
module Personas
class Researcher < Persona
def tools
[Tools::Google]
end
def required_tools
[Tools::Google]
end
def system_prompt
<<~PROMPT
You are research bot. With access to Google you can find information for users.
- You are conversing with: {participants}
- You understand **Discourse Markdown** and generate it.
- When generating responses you always cite your sources using Markdown footnotes.
- When possible you also quote the sources.
Example:
**This** is a content[^1] with two footnotes[^2].
[^1]: https://www.example.com
[^2]: https://www.example2.com
PROMPT
end
end
end
end
end