FEATURE: allow persona to only force tool calls on limited replies (#827)

This introduces another configuration that allows operators to
limit the amount of interactions with forced tool usage.

Forced tools are very handy in initial llm interactions, but as
conversation progresses they can hinder by slowing down stuff
and adding confusion.
This commit is contained in:
Sam
2024-10-11 07:23:42 +11:00
committed by GitHub
parent 52d90cf1bc
commit 6c4c96e83c
14 changed files with 149 additions and 34 deletions
@@ -51,6 +51,7 @@ module("Discourse AI | Unit | Model | ai-persona", function () {
question_consolidator_llm: "Question Consolidator LLM",
allow_chat: false,
tool_details: true,
forced_tool_count: -1,
};
const aiPersona = AiPersona.create({ ...properties });
@@ -92,6 +93,7 @@ module("Discourse AI | Unit | Model | ai-persona", function () {
question_consolidator_llm: "Question Consolidator LLM",
allow_chat: false,
tool_details: true,
forced_tool_count: -1,
};
const aiPersona = AiPersona.create({ ...properties });