mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore(openai): (v1) fix sort order of mcp call keys (#33295)
This commit is contained in:
@@ -363,6 +363,8 @@ def _consolidate_calls(items: Iterable[dict[str, Any]]) -> Iterator[dict[str, An
|
||||
collapsed["server_label"] = server_label
|
||||
collapsed["type"] = "mcp_call"
|
||||
|
||||
if approval_id := current.get("extras", {}).get("approval_request_id"):
|
||||
collapsed["approval_request_id"] = approval_id
|
||||
if error := nxt.get("extras", {}).get("error"):
|
||||
collapsed["error"] = error
|
||||
if "output" in nxt:
|
||||
|
||||
Reference in New Issue
Block a user