|
@@ -730,12 +730,11 @@ function buildCustomPromptItems() {
|
|
|
|
|
|
|
|
function collectSystemPrompts() {
|
|
function collectSystemPrompts() {
|
|
|
const promptItems = buildPromptItems();
|
|
const promptItems = buildPromptItems();
|
|
|
- const serializablePrompts = toolInvocationMode.value === "chat_agent_tools"
|
|
|
|
|
- ? promptItems.filter((item) => (
|
|
|
|
|
- item.prompt_kind !== "event_agent_system"
|
|
|
|
|
- && !isGeneratedEventPromptContent(item.content)
|
|
|
|
|
- ))
|
|
|
|
|
- : promptItems;
|
|
|
|
|
|
|
+ const serializablePrompts = promptItems.filter((item) => (
|
|
|
|
|
+ item.prompt_kind === "event_agent_system"
|
|
|
|
|
+ ? toolInvocationMode.value === "dual_agent"
|
|
|
|
|
+ : !isGeneratedEventPromptContent(item.content)
|
|
|
|
|
+ ));
|
|
|
return serializablePrompts
|
|
return serializablePrompts
|
|
|
.map((item) => item.content)
|
|
.map((item) => item.content)
|
|
|
.filter(Boolean);
|
|
.filter(Boolean);
|