fix(runtime): release 2.7.1 with consistent ADB and failure diagnostics

This commit is contained in:
chenmingxuan committed 2026-11-05 11:40:49 +08:00
1 parent b2316ca249
commit 8bf59897bb
24 files changed
+792 -45

No files matched your search

+9 -4
View File
@@ -748,10 +748,15 @@ class RobustChatModelWrapper:
if observation is not None and (usage := usage_from_message(response)) is not None:
observation.data["usage"] = usage
ensure_response_complete(response)
if self.structured_mode == "parsed" and isinstance(response, dict) and "raw" in response:
if response.get("parsing_error") is not None:
raise response["parsing_error"]
return response["parsed"]
if self.structured_mode == "parsed":
if isinstance(response, dict) and "raw" in response:
if response.get("parsing_error") is not None:
raise ResponseIntegrityError("invalid_structured_output") from response[
"parsing_error"
]
response = response.get("parsed")
if response is None:
raise ResponseIntegrityError("missing_structured_output")
return response
async def ainvoke(self, *args, **kwargs):