adding xml examples to all newtask calls (#8034)
This commit is contained in:
1 parent
27c9971774
commit
17a95f0021
2 files changed
+3
-5
No files matched your search
@@ -1,10 +1,8 @@
|
||||
import type { ApiProviderInfo } from "@/core/api"
|
||||
import { getDeepPlanningPrompt } from "./commands/deep-planning"
|
||||
|
||||
export const newTaskToolResponse = (enableNativeToolCalls?: boolean) => {
|
||||
const xmlExample = enableNativeToolCalls
|
||||
? ""
|
||||
: `
|
||||
export const newTaskToolResponse = () => {
|
||||
const xmlExample = `
|
||||
Example:
|
||||
<new_task>
|
||||
<context>1. Current Work:
|
||||
|
||||
@@ -57,7 +57,7 @@ export async function parseSlashCommands(
|
||||
const willUseNativeTools = isNativeToolCallingConfig(providerInfo!, enableNativeToolCalls || false)
|
||||
|
||||
const commandReplacements: Record<string, string> = {
|
||||
newtask: newTaskToolResponse(willUseNativeTools),
|
||||
newtask: newTaskToolResponse(),
|
||||
smol: condenseToolResponse(focusChainSettings),
|
||||
compact: condenseToolResponse(focusChainSettings),
|
||||
newrule: newRuleToolResponse(),
|
||||
|
||||
Reference in new issue
Block a user