Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Merge branch 'main' into persist-providers2
Sarah Wooders29a6a0de29b2
diff --cc tests/integration_test_tool_execution_sandbox.pyindex 55881f7cd,e7824673c..4e6562e96--- a/tests/integration_test_tool_execution_sandbox.py+++ b/tests/integration_test_tool_execution_sandbox.py@@@ -382,34 -344,7 +382,42 @@@ def test_local_sandbox_e2e_composio_staresult = ToolExecutionSandbox(composio_github_star_tool.name, {"owner": "letta-ai", "repo": "letta"}, user=test_user).run()assert result.func_return["details"] == "Action executed successfully"+ # Missing args causes error+ result = ToolExecutionSandbox(composio_github_star_tool.name, {}, user=test_user).run()+ assert "Invalid request data provided" in result.func_return++[email protected]_sandbox+def test_local_sandbox_multiple_composio_entities(+ mock_e2b_api_key_none, check_composio_key_set, composio_gmail_get_profile_tool, agent_state, test_user+):+ # Agent state with no composio entity ID+ result = ToolExecutionSandbox(composio_gmail_get_profile_tool.name, {}, user=test_user).run(agent_state=agent_state)+ assert result.func_return["response_data"]["emailAddress"] == "[email protected]"++ # Agent state with the composio entity set to 'matt'+ agent_state.tool_exec_environment_variables = [+ AgentEnvironmentVariable(key=COMPOSIO_ENTITY_ENV_VAR_KEY, value="matt", agent_id=agent_state.id)+ ]+ result = ToolExecutionSandbox(composio_gmail_get_profile_tool.name, {}, user=test_user).run(agent_state=agent_state)+ assert result.func_return["response_data"]["emailAddress"] == "[email protected]"++ # Agent state with composio entity ID set to default+ agent_state.tool_exec_environment_variables = [+ AgentEnvironmentVariable(key=COMPOSIO_ENTITY_ENV_VAR_KEY, value="default", agent_id=agent_state.id)+ ]+ result = ToolExecutionSandbox(composio_gmail_get_profile_tool.name, {}, user=test_user).run(agent_state=agent_state)+ assert result.func_return["response_data"]["emailAddress"] == "[email protected]"++[email protected]_sandbox++def test_local_sandbox_e2e_composio_star_github_without_setting_db_env_vars(++ mock_e2b_api_key_none, check_composio_key_set, composio_github_star_tool, test_user++):++ result = ToolExecutionSandbox(composio_github_star_tool.name, {"owner": "letta-ai", "repo": "letta"}, user=test_user).run()++ assert result.func_return["details"] == "Action executed successfully"+++@pytest.mark.local_sandboxdef test_local_sandbox_e2e_composio_star_github_without_setting_db_env_vars(mock_e2b_api_key_none, check_composio_key_set, composio_github_star_tool, test_user