setIsolated
Set whether this context is isolated from other contexts’ conversation history.
When true, entering this context via change_context wipes the conversation
array — the model starts fresh with only this context’s system prompt and step
instructions, with no memory of prior turns.
If the context also has a reset configured (setConsolidate(true) or
setFullReset(true)), the wipe is skipped in favor of the reset behavior.
Use reset with setConsolidate(true) to summarize prior history into a
single message instead of dropping it entirely.
Parameters
isolated
Whether to isolate this context from other contexts’ conversation history.
Returns
Context — Self for method chaining.