feat: Composio tools execute on-the-fly (#999)

This commit is contained in:
Matthew Zhou
2025-02-13 16:13:29 -08:00
committed by GitHub
parent 32f864d6f9
commit 8d765f286e
48 changed files with 335 additions and 295 deletions

View File

@@ -9,7 +9,6 @@ from letta.schemas.llm_config import LLMConfig
from letta.schemas.memory import ChatMemory
from letta.schemas.sandbox_config import SandboxType
from letta.services.sandbox_config_manager import SandboxConfigManager
from letta.settings import tool_settings
"""
Setup here.
@@ -31,7 +30,7 @@ for agent_state in client.list_agents():
# Add sandbox env
manager = SandboxConfigManager(tool_settings)
manager = SandboxConfigManager()
# Ensure you have e2b key set
sandbox_config = manager.get_or_create_default_sandbox_config(sandbox_type=SandboxType.E2B, actor=client.user)
manager.create_sandbox_env_var(