Skip to main content

ai.post_prompt

The final set of instructions and configuration settings to send to the agent.

post_prompt
object

An object that accepts the post_prompt parameters.

post_prompt Parameters

text
stringrequired

The instructions to send to the agent.

temperature
number
Default: 1.0

Randomness setting. Float value between 0.0 and 1.5. Closer to 0 will make the output less random.

top_p
number
Default: 1.0

Randomness setting. Alternative to temperature. Float value between 0.0 and 1.0. Closer to 0 will make the output less random.

confidence
number
Default: 0.6

Threshold to fire a speech-detect event at the end of the utterance. Float value between 0.0 and 1.0. Decreasing this value will reduce the pause after the user speaks, but may introduce false positives.

presence_penalty
number
Default: 0

Aversion to staying on topic. Float value between -2.0 and 2.0. Positive values increase the model's likelihood to talk about new topics.

frequency_penalty
number
Default: 0

Aversion to repeating lines. Float value between -2.0 and 2.0. Positive values decrease the model's likelihood to repeat the same line verbatim.