Skip to content

Commit f82f89b

Browse files
committed
fix
1 parent 2ad1567 commit f82f89b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

libs/core/langchain_core/messages/ai.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def add_ai_message_chunks(
402402
name=rtc.get("name"),
403403
args=rtc.get("args"),
404404
index=rtc.get("index"),
405-
id=rtc.get("chunk_id"),
405+
id=rtc.get("id"),
406406
)
407407
for rtc in raw_tool_calls
408408
]

libs/core/langchain_core/runnables/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3079,7 +3079,7 @@ async def ainvoke(
30793079
if i == 0:
30803080
part = functools.partial(step.ainvoke, input_, config, **kwargs)
30813081
else:
3082-
part = functools.partial(step.ainvoke, input, config)
3082+
part = functools.partial(step.ainvoke, input_, config)
30833083
input_ = await coro_with_context(part(), context, create_task=True)
30843084
# finish the root run
30853085
except BaseException as e:

libs/core/tests/unit_tests/runnables/test_fallbacks.py

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def _generate(_: Iterator) -> Iterator[str]:
267267
def _generate_immediate_error(_: Iterator) -> Iterator[str]:
268268
msg = "immmediate error"
269269
raise ValueError(msg)
270+
yield ""
270271

271272

272273
def _generate_delayed_error(_: Iterator) -> Iterator[str]:

0 commit comments

Comments
 (0)