Get started with the Autoblocks TypeScript Prompt SDK to manage and execute your prompts with type safety and autocomplete.
prompts generate-v2
command to your package.json
scripts:
'latest'
:
'latest'
, the prompt manager periodically refreshes the in-memory prompt
in the background according to the refreshInterval
.
See the AutoblocksPromptManager
reference for more information.exec
method on the prompt manager starts a new prompt execution context.
It creates a PromptExecutionContext
instance that gives you fully-typed access to the prompt’s templates and parameters:
dangerously-use-undeployed
:
prompts.ts
:
init
at the entrypoint of your application:
prompts
module and use the prompt managers as needed: