Circle V2 API Docs
Preparing search index...
@repo/ai
prompts
withPromptScope
Function withPromptScope
withPromptScope
<
T
>
(
scope
:
PromptScope
,
fn
:
()
=>
Promise
<
T
>
)
:
Promise
<
T
>
Applies
scope
to every prompt resolved inside
fn
, including nested async work.
Type Parameters
T
Parameters
scope
:
PromptScope
fn
:
()
=>
Promise
<
T
>
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Circle V2 API Docs
Loading...
Applies
scopeto every prompt resolved insidefn, including nested async work.