@triplef/agent 0.1.21 → 0.1.22
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/dist/prompts/index.mjs +5 -5
- package/package.json +1 -1
package/dist/prompts/index.mjs
CHANGED
|
@@ -2392,7 +2392,7 @@ without needing an explicit "remember" instruction. Two lanes, never confused:
|
|
|
2392
2392
|
- EXPLICIT INSTRUCTION: when the user explicitly asks to remember, track, follow, or learn something (however phrased, in any language), include the enabled memory-partition-remember tool and act on it.
|
|
2393
2393
|
- UPDATE-LOOP: when memory-partition-recall shows the user already has facts on the subject, the remember call must UPDATE or EXTEND them, never duplicate or contradict. The turn pipeline also extracts notable facts automatically, so the remember tool is the explicit agentic write, not the only write path.
|
|
2394
2394
|
- FORGET A FACT: when the user asks to forget, delete, or stop remembering a specific statement (however phrased, in any language), include the enabled memory-partition-recall AND memory-partition-delete tools \u2014 recall surfaces the verbatim stored statement, delete removes exactly that record. Deletion is exact: the model recalls first, then deletes the verbatim text (records have no ids).
|
|
2395
|
-
- FORGET UNDERSTANDING: when the user asks to forget what you have LEARNED about them (your understanding, not a specific fact), include the enabled memory-cognition-forget tool \u2014 it wipes your whole cognition space (the structured profile AND every derived insight), the AI's own accumulated model of the user. Full fact-store wipes stay a settings (
|
|
2395
|
+
- FORGET UNDERSTANDING: when the user asks to forget what you have LEARNED about them (your understanding, not a specific fact), include the enabled memory-cognition-forget tool \u2014 it wipes your whole cognition space (the structured profile AND every derived insight), the AI's own accumulated model of the user. Full fact-store wipes stay a settings (settings) action, never a tool call.
|
|
2396
2396
|
- DISCLOSE: when the user asks what you remember, know, or have learned about them ("what do you know about me?", however phrased, any language), answer from memory and your cognition (the structured profile block and any probed insights already in context) \u2014 template "text", prompt variant "familiarity", NO web tools (the subject is private, not public). Disclose plainly, quote the stored statements and profile fields, and offer correction or deletion.
|
|
2397
2397
|
- When a request needs both memory and public sources, include memory-partition-recall AND the enabled *WebSearch tools \u2014 never replace memory-partition-recall with web search. Memory is the user's own statements; web is public sources; the answer keeps the two distinct.
|
|
2398
2398
|
- A READ question about prior conversation is a CONTINUATION: carry the referenced entities into contextSummary verbatim so the recall query stays concrete.`;
|
|
@@ -2903,7 +2903,7 @@ RULES:
|
|
|
2903
2903
|
- clarificationQuestion: MUST be in the language identified by the "language" field.
|
|
2904
2904
|
- reasoning: MUST be in the language identified by the "language" field.
|
|
2905
2905
|
- If the request is ambiguous set needsClarification=true and provide a concise question in the language identified by the "language" field. The question must offer the most likely interpretations as options.
|
|
2906
|
-
- imageCount: set only when the user explicitly requests a number of images, or asks for more images without a number (then ${MORE_MEDIA_COUNT}); otherwise omit \u2014 the system uses the configured reference-pool default (
|
|
2906
|
+
- imageCount: set only when the user explicitly requests a number of images, or asks for more images without a number (then ${MORE_MEDIA_COUNT}); otherwise omit \u2014 the system uses the configured reference-pool default (Settings Sources) for describe/compare/ocr and ${DEFAULT_MEDIA_COUNT} for other templates.
|
|
2907
2907
|
- videoCount: set only when the user explicitly requests a number of videos, or asks for more videos without a number (then ${MORE_MEDIA_COUNT}); otherwise omit \u2014 the system defaults to ${DEFAULT_MEDIA_COUNT}.
|
|
2908
2908
|
- plan.images.resize should be true when images are present, unless the user explicitly asks for full resolution.
|
|
2909
2909
|
- plan.images.variants should only include variants that would materially improve the analysis. Leave empty if the original is sufficient.
|
|
@@ -2923,7 +2923,7 @@ Return ONLY a single valid JSON object matching the intent schema exactly.
|
|
|
2923
2923
|
All object keys must be quoted with double quotes.
|
|
2924
2924
|
Do not add markdown code fences, explanations, or extra text.
|
|
2925
2925
|
|
|
2926
|
-
- plan: must be an object
|
|
2926
|
+
- plan: must be an object \u2014 never null, never a string. Omit it when unused.
|
|
2927
2927
|
- Omit any other optional field instead of setting it to null.
|
|
2928
2928
|
|
|
2929
2929
|
FINAL REMINDER:
|
|
@@ -3614,9 +3614,9 @@ function buildExtractionCorrectionPrompt(error) {
|
|
|
3614
3614
|
Error: ${error}
|
|
3615
3615
|
|
|
3616
3616
|
Return ONLY a single valid JSON object matching the extraction schema exactly:
|
|
3617
|
-
{
|
|
3617
|
+
${formatZodShape(ExtractionSchema)}
|
|
3618
3618
|
All object keys must be quoted with double quotes. "subject" and the per-fact "category" are optional; "kind" and "stability" are required on every fact.
|
|
3619
|
-
Do not add markdown code fences, explanations, or extra text.
|
|
3619
|
+
Do not add markdown code fences, explanations, placeholders, or extra text.
|
|
3620
3620
|
|
|
3621
3621
|
FINAL REMINDER:
|
|
3622
3622
|
- Return ONLY a single valid JSON object. No markdown code fences, no explanations, no extra text.`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triplef/agent",
|
|
3
3
|
"description": "tripleF (3F) agent domain — structured-output schemas, prompt builders, and model tools shared across the apps.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.22",
|
|
5
5
|
"packageManager": "pnpm@11.25.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|