feat: add stateful responses API

This commit is contained in:
Xin Wang
2026-09-07 00:15:32 +08:00
parent ab409ba9c0
commit 43f2cc445e
22 changed files with 2461 additions and 5 deletions
+2 -1
View File
@@ -256,6 +256,7 @@ def prepare_dynamic_config(
client_values: dict[str, Any] | None,
*,
assistant_id: str | None,
conversation_id: str | None = None,
timezone: str = "Asia/Shanghai",
trusted_values: dict[str, Any] | None = None,
) -> AssistantConfig:
@@ -288,7 +289,7 @@ def prepare_dynamic_config(
merged[name] = value
merged.update(supplied)
conversation_id = f"conv_{uuid4().hex[:20]}"
conversation_id = conversation_id or f"conv_{uuid4().hex[:20]}"
merged.update(
_system_values(
assistant_id=assistant_id,