Preparing search index...
The search index is not available
Tidyscripts Docs
Tidyscripts Docs
node
common
apis
cortex
Runner
Interface Runner
A Runner encapsulates one strategy for the LLM call → parse → execute loop.
interface
Runner
{
id
:
string
;
getOutputModule
(
)
:
node
.
common
.
apis
.
cortex
.
ContextModule
;
getPromptFormat
(
)
:
node
.
common
.
apis
.
cortex
.
RunnerPromptFormat
;
run
(
ctx
:
node
.
common
.
apis
.
cortex
.
RunnerContext
,
maxLoops
:
number
)
:
Promise
<
string
>
;
warmup
?
(
)
:
Promise
<
void
>
;
}
Implemented by
node
.
common
.
apis
.
cortex
.
StreamingRunner
node
.
common
.
apis
.
cortex
.
StreamingRunnerV3
node
.
common
.
apis
.
cortex
.
SynchronousRunner
Index
Properties
id
Methods
get
Output
Module
get
Prompt
Format
run
warmup?
Properties
Readonly
id
id
:
string
Methods
get
Output
Module
get
Output
Module
(
)
:
node
.
common
.
apis
.
cortex
.
ContextModule
Returns
node
.
common
.
apis
.
cortex
.
ContextModule
get
Prompt
Format
get
Prompt
Format
(
)
:
node
.
common
.
apis
.
cortex
.
RunnerPromptFormat
Returns
node
.
common
.
apis
.
cortex
.
RunnerPromptFormat
run
run
(
ctx
,
maxLoops
)
:
Promise
<
string
>
Parameters
ctx
:
node
.
common
.
apis
.
cortex
.
RunnerContext
maxLoops
:
number
Returns
Promise
<
string
>
Optional
warmup
warmup
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
id
Methods
get
Output
Module
get
Prompt
Format
run
warmup
Tidyscripts Docs
Loading...
A Runner encapsulates one strategy for the LLM call → parse → execute loop.