Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

ux: Lower thresholds for timeout static prompt triggers

Clémence Lesnéfd286b246b1e
diff --git a/README.md b/README.md
index d2a80c7..13be012 100644
--- a/README.md
+++ b/README.md
@@ -472,8 +472,8 @@ Conversation options are represented as features. They can be configured from Ap
| Name | Description | Type | Default |
|-|-|-|-|
-| `answer_hard_timeout_sec` | Time waiting the LLM before aborting the answer with an error message. | `int` | 40 |
-| `answer_soft_timeout_sec` | Time waiting the LLM before sending a waiting message. | `int` | 15 |
+| `answer_hard_timeout_sec` | Time waiting the LLM before aborting the answer with an error message. | `int` | 15 |
+| `answer_soft_timeout_sec` | Time waiting the LLM before sending a waiting message. | `int` | 4 |
| `callback_timeout_hour` | The timeout for a callback in hours. Set 0 to disable. | `int` | 3 |
| `phone_silence_timeout_sec` | Amount of silence in secs to trigger a warning message from the assistant. | `int` | 20 |
| `recognition_retry_max` | TThe maximum number of retries for voice recognition. Minimum of 1. | `int` | 3 |
diff --git a/app/helpers/features.py b/app/helpers/features.py
index 1023701..c0e6ff7 100644
--- a/app/helpers/features.py
+++ b/app/helpers/features.py
@@ -20,7 +20,7 @@ async def answer_hard_timeout_sec() -> int:
Time waiting the LLM before aborting the answer with an error message.
"""
return await _default(
- default=40,
+ default=15,
key="answer_hard_timeout_sec",
type_res=int,
)
@@ -31,7 +31,7 @@ async def answer_soft_timeout_sec() -> int:
Time waiting the LLM before sending a waiting message.
"""
return await _default(
- default=15,
+ default=3,
key="answer_soft_timeout_sec",
type_res=int,
)
diff --git a/cicd/bicep/app.bicep b/cicd/bicep/app.bicep
index 87632a1..25e5dac 100644
--- a/cicd/bicep/app.bicep
+++ b/cicd/bicep/app.bicep
@@ -996,8 +996,8 @@ resource assignmentAppConfigurationDataReader 'Microsoft.Authorization/roleAssig
resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@2023-03-01' = [
for item in items({
- answer_hard_timeout_sec: 40
- answer_soft_timeout_sec: 15
+ answer_hard_timeout_sec: 15
+ answer_soft_timeout_sec: 4
callback_timeout_hour: 3
phone_silence_timeout_sec: 20
recognition_retry_max: 2