feat: Add endpoints to list Composio apps and actions (#2140)
This commit is contained in:
@@ -10,8 +10,6 @@ from sqlalchemy import delete
|
||||
|
||||
from letta import create_client
|
||||
from letta.functions.function_sets.base import core_memory_replace
|
||||
from letta.functions.functions import parse_source_code
|
||||
from letta.functions.schema_generator import generate_schema
|
||||
from letta.orm import SandboxConfig, SandboxEnvironmentVariable
|
||||
from letta.schemas.agent import AgentState
|
||||
from letta.schemas.embedding_config import EmbeddingConfig
|
||||
@@ -34,6 +32,7 @@ from letta.services.tool_execution_sandbox import ToolExecutionSandbox
|
||||
from letta.services.tool_manager import ToolManager
|
||||
from letta.services.user_manager import UserManager
|
||||
from letta.settings import tool_settings
|
||||
from tests.helpers.utils import create_tool_from_func
|
||||
|
||||
# Constants
|
||||
namespace = uuid.NAMESPACE_DNS
|
||||
@@ -214,18 +213,6 @@ def agent_state():
|
||||
yield agent_state
|
||||
|
||||
|
||||
# Utility functions
|
||||
def create_tool_from_func(func: callable):
|
||||
return Tool(
|
||||
name=func.__name__,
|
||||
description="",
|
||||
source_type="python",
|
||||
tags=[],
|
||||
source_code=parse_source_code(func),
|
||||
json_schema=generate_schema(func, None),
|
||||
)
|
||||
|
||||
|
||||
# Local sandbox tests
|
||||
@pytest.mark.local_sandbox
|
||||
def test_local_sandbox_default(mock_e2b_api_key_none, add_integers_tool, test_user):
|
||||
|
||||
Reference in New Issue
Block a user