runIsolated<Defined in: src/genai/context.ts:54 RunT>(fn):T
fn in a fresh, isolated GenAI state frame. Any Conversation / Turn / LLM
started inside fn lives in this frame only — it does not clash with
sibling runIsolated frames running concurrently, and it does not leak
to the outer async chain.
Use this to safely run parallel GenAI work:
Type Parameters
T
T
Parameters
fn
() =>T
Returns
T