mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 16:54:42 +00:00
Approach #2
This commit is contained in:
parent
86820d13cd
commit
0dd56fe7ec
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ class ChatAgent(ShieldRunnerMixin):
|
||||||
tool_call = message.tool_calls[0]
|
tool_call = message.tool_calls[0]
|
||||||
|
|
||||||
name = tool_call.tool_name
|
name = tool_call.tool_name
|
||||||
if not isinstance(name, BuiltinTool):
|
if not isinstance(name, BuiltinTool) or name not in enabled_tools:
|
||||||
yield message
|
yield message
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue