Use this scenario
Run
Run memory_forget scenario.
Use run_scenario with the saved scenario name and string-valued inputs. Required values are requested before execution.
View invocation JSON
{
"scenario_name": "memory_forget",
"inputs": {
"key": "your key"
}
}Watch this version
Inputs
PARAMETERS| Input | Requirement | Default value |
|---|---|---|
key | Required | No default |
Agent instructions
SYSTEM PROMPTMove one saved fact to the custom bin. Never claim removal without a verified receipt.
Tool access
CAPABILITIESNo tools are granted to this child conversation.
Ordered steps
EXECUTION- 01CONDITION / HOST EVALUATED
Workspace path
memory/{{key}}.txtexists = trueTHEN
- 01
ELSE
- 01CHAT TURN 01
Return only: No saved fact exists for key {{key}}; nothing was removed.
Return to main
RESPOND EXITConfirm removal only from the verified result. Explain that the fact is in the recoverable custom bin, not permanently erased. Do not claim removal while approval is pending.
The main agent receives the result and these instructions, then composes the final reply.
Complete XML, including any embedded C#. Copy it without changing the file's contents.
<scenario schemaVersion="2" id="memory_forget" title="Forget a user fact">
<inputs><input name="key" required="true" /></inputs>
<systemPrompt>Move one saved fact to the custom bin. Never claim removal without a verified receipt.</systemPrompt>
<steps>
<if workspacePath="memory/{{key}}.txt" exists="true">
<then><run scenario="workspace_bin"><input name="path" value="memory/{{key}}.txt" /></run></then>
<else><step>Return only: No saved fact exists for key {{key}}; nothing was removed.</step></else>
</if>
</steps>
<exit mode="respond">Confirm removal only from the verified result. Explain that the fact is in the recoverable custom bin, not permanently erased. Do not claim removal while approval is pending.</exit>
</scenario>
Every part, briefly.
Short explanations of every element and chat step in this scenario.
- 01Writing example ↗
<scenario>Names and versions the workflow.
- 02Writing example ↗
<inputs>Declares input values.
- 03Writing example ↗
<input>keyRequires a supplied value.
- 04Writing example ↗
<systemPrompt>Sets the child's instructions.
- 05Writing example ↗
<steps>Orders the chat turns.
- 06Writing example ↗
<if>Checks real workspace state or an input value.
- 07Writing example ↗
<then>Runs when the condition matches.
- 08Writing example ↗
<run>Invokes a fresh saved child scenario.
- 09Writing example ↗
<input>pathBinds a named operation or child input.
- 10Writing example ↗
<else>Runs when the condition does not match.
- 11Writing example ↗
<step 1>Return only: No saved fact exists for key {{key}};…
- 12Writing example ↗
<exit>Lets the main agent respond.