Home

Prompt Block

Used on an Instruction to render a prompt and display the rendering to the user. Can also be used standalone to preview how a prompt is rendered at a particular position in a document.

This type is marked as unstable and is subject to change.

Properties

The PromptBlock type has these properties:

NameDescriptionTypeInherited from
idThe identifier for this item.StringEntity
executionModeUnder which circumstances the node should be executed.ExecutionModeExecutable
compilationDigestA digest of the content, semantics and dependencies of the node.CompilationDigestExecutable
compilationMessagesMessages generated while compiling the code.CompilationMessage*Executable
executionDigestThe compilationDigest of the node when it was last executed.CompilationDigestExecutable
executionDependenciesThe upstream dependencies of this node.ExecutionDependency*Executable
executionDependantsThe downstream dependants of this node.ExecutionDependant*Executable
executionTagsTags in the code which affect its execution.ExecutionTag*Executable
executionCountA count of the number of times that the node has been executed.IntegerExecutable
executionRequiredWhether, and why, the code requires execution or re-execution.ExecutionRequiredExecutable
executionStatusStatus of the most recent, including any current, execution.ExecutionStatusExecutable
executionInstanceThe id of the kernel instance that performed the last execution.StringExecutable
executionEndedThe timestamp when the last execution ended.TimestampExecutable
executionDurationDuration of the last execution.DurationExecutable
executionMessagesMessages emitted while executing the node.ExecutionMessage*Executable
instructionTypeThe type of instruction the being used forInstructionType-
nodeTypesThe type of nodes the prompt is being used forString*-
relativePositionThe relative position of the node being edited, described etc.RelativePosition-
queryA user text query used to infer the target promptString-
targetAn identifier for the prompt to be renderedString-
directoryThe home directory of the promptString-
contentThe executed content of the promptBlock*-

Related

The PromptBlock type is related to these types:

Bindings

The PromptBlock type is represented in:


This documentation was generated from PromptBlock.yaml by docs_types.rs.

© 2026 Stencila