Chaining

Chaning multiple PromptScript commands together.


To pass the output of one process as the parameter of another, surround it in square brackets ([]). Example:

save [chat "<prompt>", "<model>", "<api_key>"], "file.txt"

Note

Chaining isn’t required for passing the output of one process into a method that only takes one parameter (e.g. show). It’s still recommended for readability.