From a07c6c4bac0c2406d9cece953a7b42ffe091c68e Mon Sep 17 00:00:00 2001 From: XI Date: Thu, 4 Jun 2026 00:14:52 +0100 Subject: [PATCH] New `before` / `after` / `both` setting on HTTP tools that controls when conversation variable extraction runs: --- api/schemas/tool.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/schemas/tool.py b/api/schemas/tool.py index 6767e28e..87603745 100644 --- a/api/schemas/tool.py +++ b/api/schemas/tool.py @@ -142,6 +142,12 @@ class HttpApiConfig(BaseModel): default=None, description="Recording ID for an audio custom message." ) + variable_extraction_timing: Literal["before", "after", "both"] = Field( + default="before", + description="When to run variable extraction relative to the tool call (before, after, or both)", + ) + + @field_validator("method", mode="before") @classmethod def validate_method(cls, v: Any) -> str: