Properties
| Name | Type | Description |
|---|---|---|
| provider | string | This is the provider for the smart endpointing plan. |
| waitFunction | string | This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint. This is a millisecond valued function. It maps probabilities (real |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/LivekitSmartEndpointingPlan",
"title": "LivekitSmartEndpointingPlan",
"type": "object",
"properties": {
"provider": {
"type": "string",
"description": "This is the provider for the smart endpointing plan.",
"enum": [
"vapi",
"livekit",
"custom-endpointing-model"
],
"example": "livekit"
},
"waitFunction": {
"type": "string",
"description": "This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint.\n\nThis is a millisecond valued function. It maps probabilities (real numbers on [0,1]) to milliseconds that the bot should wait before speaking ([0, \\infty]). Any negative values that are returned are set to zero (the bot can't start talking in the past).\n\nA probability of zero represents very high confidence that the caller has stopped speaking, and would like the bot to speak to them. A probability of one represents very high confidence that the caller is still speaking.\n\nUnder the hood, this is parsed into a mathjs expression. Whatever you use to write your expression needs to be valid with respect to mathjs\n\n@default \"20 + 500 * sqrt(x) + 2500 * x^3\"",
"examples": [
"70 + 4000 * x",
"200 + 8000 * x",
"4000 * (1 - cos(pi * x))"
]
}
},
"required": [
"provider"
]
}