Skip to content

Commit 8198722

Browse files
committed
review comment
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
1 parent 1796791 commit 8198722

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docs/examples/tools/shell_example.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ def example_3_llm_with_forced_tool_use(m: MelleaSession) -> None:
9595
description="Use bash to find Python files in the current directory. "
9696
"Generate a single command using find or ls (no pipes, redirects, or shell operators allowed).",
9797
requirements=[uses_tool(bash_executor)],
98-
model_options={
99-
ModelOption.TOOLS: [MelleaTool.from_callable(bash_executor)]
100-
},
98+
model_options={ModelOption.TOOLS: [MelleaTool.from_callable(bash_executor)]},
10199
tool_calls=True,
102100
)
103101

@@ -107,8 +105,7 @@ def example_3_llm_with_forced_tool_use(m: MelleaSession) -> None:
107105
if "bash_executor" not in result.tool_calls:
108106
available_tools = list(result.tool_calls.keys())
109107
raise ValueError(
110-
f"Expected tool 'bash_executor' in tool_calls, "
111-
f"but got: {available_tools}"
108+
f"Expected tool 'bash_executor' in tool_calls, but got: {available_tools}"
112109
)
113110

114111
# Extract the bash command the LLM generated

0 commit comments

Comments
 (0)