fix: background agent prompting, lets kill this sleep behavior oml (#31162)
This commit is contained in:
parent
4519a1da32
commit
b9131aa69c
@ -30,13 +30,13 @@ const BACKGROUND_DESCRIPTION = [
|
||||
].join(" ")
|
||||
const BACKGROUND_STARTED = [
|
||||
"The task is working in the background. You will be notified automatically when it finishes.",
|
||||
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
|
||||
"DO NOT sleep, poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
|
||||
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
|
||||
].join("\n")
|
||||
const BACKGROUND_UPDATED = [
|
||||
"Additional context sent to the running background task.",
|
||||
"The task is still working in the background. You will be notified automatically when it finishes.",
|
||||
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
|
||||
"DO NOT sleep, poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
|
||||
"Work on non-overlapping tasks, or briefly tell the user what you sent and end your response.",
|
||||
].join("\n")
|
||||
|
||||
@ -56,7 +56,8 @@ const BaseParameters = Schema.Struct(BaseParameterFields)
|
||||
export const Parameters = Schema.Struct({
|
||||
...BaseParameterFields,
|
||||
background: Schema.optional(Schema.Boolean).annotate({
|
||||
description: "Run the agent in the background. You will be notified when it completes.",
|
||||
description:
|
||||
"Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress",
|
||||
}),
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user