We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30052b2 commit 07f933fCopy full SHA for 07f933f
packages/agent-runtime/src/templates/strings.ts
@@ -216,7 +216,7 @@ export async function getAgentPrompt<T extends StringField>(
216
217
let addendum = ''
218
219
- if (promptType.type === 'stepPrompt' && agentState.agentType) {
+ if (promptType.type === 'stepPrompt' && agentState.agentType && prompt) {
220
// Put step prompt within a system_reminder tag so agent doesn't think the user just spoke again.
221
prompt = `<system_reminder>${prompt}</system_reminder>`
222
}
0 commit comments