Anonymous View
Skip to content

Commit a3abfe6

Browse files
committed
fix: agent prompt fix for longer context windows
1 parent 9e7dec8 commit a3abfe6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/core/src/agent/inferAgentInternal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const SYSTEM_PROMPT = `You answer using programming language called AgentScript.
2828
- can't use complex computation
2929
- can only use predefined functions and nothing else
3030
- to iterate over arrays always use \`map\` function
31+
- never assume array in non-empty
3132
- each function call or code block requires a comment briefly explaining the step
3233
3334
First explain your plan step by step in non-technical way. Do not reference code, or functions.

0 commit comments

Comments
 (0)