Skip to content

Commit 3a36832

Browse files
committed
fix: minor issue introduced by variable renaming
Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
1 parent e279740 commit 3a36832

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mellea/stdlib/functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ async def _acall_tools(result: ModelOutputThunk, backend: Backend) -> list[ToolM
12781278
run_hooks = not (skip_hooks_for_internal_tools() and is_internal_tool(name))
12791279

12801280
# --- tool_pre_invoke ---
1281-
if _run_hooks and has_plugins(HookType.TOOL_PRE_INVOKE):
1281+
if run_hooks and has_plugins(HookType.TOOL_PRE_INVOKE):
12821282
pre_payload = ToolPreInvokePayload(model_tool_call=tool)
12831283
_, pre_payload = await invoke_hook(
12841284
HookType.TOOL_PRE_INVOKE, pre_payload, backend=backend
@@ -1317,7 +1317,7 @@ async def _acall_tools(result: ModelOutputThunk, backend: Backend) -> list[ToolM
13171317
)
13181318

13191319
# --- tool_post_invoke ---
1320-
if _run_hooks and has_plugins(HookType.TOOL_POST_INVOKE):
1320+
if run_hooks and has_plugins(HookType.TOOL_POST_INVOKE):
13211321
post_payload = ToolPostInvokePayload(
13221322
model_tool_call=tool,
13231323
tool_output=output,

0 commit comments

Comments
 (0)