TypeScript Prompt SDK Reference
AutoblocksPromptManager
Below are the arguments that can be passed when initializing the prompt manager:
exec
Starts a prompt execution context by creating a new PromptExecutionContext instance.
PromptExecutionContext
An instance of this class is created every time a new execution context is started with the exec function.
It contains a frozen copy of the prompt manager’s in-memory prompt at the time exec was called.
This ensures the prompt is stable for the duration of an execution, even if the in-memory prompt on the manager
instance is refreshed mid-execution.
params
An object with the prompt’s parameters.
renderTemplate
The renderTemplate function accepts a template ID and parameters and returns the rendered template as a string.
renderTool
The renderTool function accepts a tool name and parameters and returns the rendered tool as an object in the JSON schema format that OpenAI expects.

