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

quality: Filter model fields alphabetically

Clémence Lesné2acb811735cd
diff --git a/helpers/config_models/conversation.py b/helpers/config_models/conversation.py
index c63fa1c..28c69c2 100644
--- a/helpers/config_models/conversation.py
+++ b/helpers/config_models/conversation.py
@@ -120,14 +120,14 @@ class WorkflowInitiateModel(BaseModel):
),
] # Configured like in v4 for compatibility
lang: LanguageModel = LanguageModel() # Object is fully defined by default
- task: str = (
- "Helping the customer to file an insurance claim. The customer is probably calling because they have a problem with something covered by their policy, but it's not certain. The assistant needs information from the customer to complete the claim. The conversation is over when all the data relevant to the case has been collected. Filling in as much information as possible is important for further processing."
- )
prosody_rate: float = Field(
default=1.0,
ge=0.75,
le=1.25,
)
+ task: str = (
+ "Helping the customer to file an insurance claim. The customer is probably calling because they have a problem with something covered by their policy, but it's not certain. The assistant needs information from the customer to complete the claim. The conversation is over when all the data relevant to the case has been collected. Filling in as much information as possible is important for further processing."
+ )
def claim_model(self) -> type[BaseModel]:
return _fields_to_pydantic(