add date_format context for input and select action context, which will be used as context for caching (#3951)

This commit is contained in:
Shuchang Zheng
2025-11-09 16:20:12 +08:00
committed by GitHub
parent 0c63b46704
commit 43e6890276
7 changed files with 25 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ class InputOrSelectContext(BaseModel):
is_search_bar: bool | None = None # don't trigger custom-selection logic when it's a search bar
is_location_input: bool | None = None # address input usually requires auto completion
is_date_related: bool | None = None # date picker mini agent requires some special logic
date_format: str | None = None
def __repr__(self) -> str:
return f"InputOrSelectContext(field={self.field}, is_required={self.is_required}, is_search_bar={self.is_search_bar}, is_location_input={self.is_location_input}, intention={self.intention})"