diff --git a/llama_stack/providers/inline/agents/meta_reference/agent_instance.py b/llama_stack/providers/inline/agents/meta_reference/agent_instance.py index d7930550d7..737589ce5c 100644 --- a/llama_stack/providers/inline/agents/meta_reference/agent_instance.py +++ b/llama_stack/providers/inline/agents/meta_reference/agent_instance.py @@ -539,7 +539,7 @@ async def _run( tool_call = message.tool_calls[0] name = tool_call.tool_name - if not isinstance(name, BuiltinTool): + if not isinstance(name, BuiltinTool) or name not in enabled_tools: yield message return