diff --git a/docs/source/building_applications/tools.md b/docs/source/building_applications/tools.md index 6da1c5a6a..95c69ffa3 100644 --- a/docs/source/building_applications/tools.md +++ b/docs/source/building_applications/tools.md @@ -43,27 +43,6 @@ The tool requires an API key which can be provided either in the configuration o > **NOTE:** When using Tavily Search and Bing Search, the inference output will still display "Brave Search." This is because Llama models have been trained with Brave Search as a built-in tool. Tavily and bing is just being used in lieu of Brave search. -#### Code Interpreter - -The Code Interpreter allows execution of Python code within a controlled environment. - -```python -# Register Code Interpreter tool group -client.toolgroups.register( - toolgroup_id="builtin::code_interpreter", provider_id="code_interpreter" -) -``` - -Features: -- Secure execution environment using `bwrap` sandboxing -- Matplotlib support for generating plots -- Disabled dangerous system operations -- Configurable execution timeouts - -> ⚠️ Important: The code interpreter tool can operate in a controlled environment locally or on Podman containers. To ensure proper functionality in containerized environments: -> - The container requires privileged access (e.g., --privileged). -> - Users without sufficient permissions may encounter permission errors. (`bwrap: Can't mount devpts on /newroot/dev/pts: Permission denied`) -> - 🔒 Security Warning: Privileged mode grants elevated access and bypasses security restrictions. Use only in local, isolated, or controlled environments. #### WolframAlpha @@ -102,7 +81,7 @@ Features: - Context retrieval with token limits -> **Note:** By default, llama stack run.yaml defines toolgroups for web search, code interpreter and rag, that are provided by tavily-search, code-interpreter and rag providers. +> **Note:** By default, llama stack run.yaml defines toolgroups for web search, wolfram alpha and rag, that are provided by tavily-search, wolfram-alpha and rag providers. ## Model Context Protocol (MCP) Tools diff --git a/llama_stack/providers/inline/agents/meta_reference/agents.py b/llama_stack/providers/inline/agents/meta_reference/agents.py index e0cfa5b25..a87739925 100644 --- a/llama_stack/providers/inline/agents/meta_reference/agents.py +++ b/llama_stack/providers/inline/agents/meta_reference/agents.py @@ -6,7 +6,6 @@ import json import logging -import shutil import uuid from collections.abc import AsyncGenerator @@ -78,10 +77,6 @@ class MetaReferenceAgentsImpl(Agents): tool_runtime_api=self.tool_runtime_api, ) - # check if "bwrap" is available - if not shutil.which("bwrap"): - logger.warning("Warning: `bwrap` is not available. Code interpreter tool will not work correctly.") - async def create_agent( self, agent_config: AgentConfig,