pi-agent-flow 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/flow.ts +4 -4
- package/package.json +1 -1
package/flow.ts
CHANGED
|
@@ -140,12 +140,12 @@ function buildFlowArgs(
|
|
|
140
140
|
// Flow instructions go in the intent message instead.
|
|
141
141
|
|
|
142
142
|
const flowDirectives =
|
|
143
|
-
|
|
144
|
-
`
|
|
145
|
-
|
|
143
|
+
`--- flow directive ---\n` +
|
|
144
|
+
`The conversation history above is background context — use it for reference, but your sole focus is the intent below, and try to execute EXACTLY as requested in the intent.\n` +
|
|
145
|
+
`--- end flow directive ---`;
|
|
146
146
|
|
|
147
147
|
const flowInstructions = flow.systemPrompt.trim()
|
|
148
|
-
? `\n\n
|
|
148
|
+
? `\n\n--- system directive ---\n${flow.systemPrompt.trim()}\n--- end system directive ---`
|
|
149
149
|
: "";
|
|
150
150
|
|
|
151
151
|
args.push(`${flowDirectives}${flowInstructions}\n\nIntent: ${intent}`);
|