Response Priming
It is possible to provide the start of the LLM response (assistant
message) in the script.
This allows to steer the answer of the LLM to a specify syntax or format.
Use assistant
function to provide the assistant text.
👤 user
🤖 assistant
🤖 assistant
How does it work?
Internally when invoking the LLM, an additional message is added to the query as if the LLM had generated this content.