ui/client/features/blocks/domain/BlockRun
Pure (DOMAIN-001): "Run this block" is not a new way to run anything.
Cockpit client (features), next. Source: ui/client/features/blocks/domain/BlockRun.ts.
Functions#
blockRunRequest()#
blockRunRequest(
row):BlockRunRequest|null
Defined in: ui/client/features/blocks/domain/BlockRun.ts:22
The step to add to the plan for row, or null when it cannot be run from here. With the default engine set to AI (only
possible on a block that has a model path) the step is tagged "local model" with the one local provider, so the plan
says plainly that a model is involved; otherwise it is the plain mechanical example.
Parameters#
row
Returns#
BlockRunRequest | null
modelPatch()#
modelPatch(
text):object
Defined in: ui/client/features/blocks/domain/BlockRun.ts:7
What the model box saves: an empty box puts the default model back (the server refuses an empty name).
Parameters#
text
string
Returns#
object
model
model:
string|null
runBlocked()#
runBlocked(
row):string|null
Defined in: ui/client/features/blocks/domain/BlockRun.ts:10
Can the card offer Run at all? A block the Cockpit never offers, or one that is turned off, cannot be run from it.
Parameters#
row
Returns#
string | null