Instruction templates for language models
prompt
property acts as a template. When your agent decides to use the prompt, any placeholders
(in curly braces, like {this}
) will be replaced by arguments, and then the completed prompt will
be passed on to the model.
result
schema.
Here’s the same prompt from the previous example, but instead of free-form text, the model will return
an array of objects: