Skip to content

Commit 21dfdf4

Browse files
committed
fix: minor issue introduced by variable renaming
Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
1 parent 483252d commit 21dfdf4

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
@@ -1295,7 +1295,7 @@ async def _acall_tools(result: ModelOutputThunk, backend: Backend) -> list[ToolM
12951295
run_hooks = not (skip_hooks_for_internal_tools() and is_internal_tool(name))
12961296

12971297
# --- tool_pre_invoke ---
1298-
if _run_hooks and has_plugins(HookType.TOOL_PRE_INVOKE):
1298+
if run_hooks and has_plugins(HookType.TOOL_PRE_INVOKE):
12991299
pre_payload = ToolPreInvokePayload(model_tool_call=tool)
13001300
_, pre_payload = await invoke_hook(
13011301
HookType.TOOL_PRE_INVOKE, pre_payload, backend=backend
@@ -1334,7 +1334,7 @@ async def _acall_tools(result: ModelOutputThunk, backend: Backend) -> list[ToolM
13341334
)
13351335

13361336
# --- tool_post_invoke ---
1337-
if _run_hooks and has_plugins(HookType.TOOL_POST_INVOKE):
1337+
if run_hooks and has_plugins(HookType.TOOL_POST_INVOKE):
13381338
post_payload = ToolPostInvokePayload(
13391339
model_tool_call=tool,
13401340
tool_output=output,

0 commit comments

Comments
 (0)