diff --git a/agentrun/tool/api/openapi.py b/agentrun/tool/api/openapi.py index 3874fbb..1bca8f7 100644 --- a/agentrun/tool/api/openapi.py +++ b/agentrun/tool/api/openapi.py @@ -446,7 +446,8 @@ def call_tool( url, auth = self._build_ram_auth(url) logger.debug( - f"Calling FunctionCall tool: {method} {url} with args={arguments}" + "Calling FunctionCall tool:" + f" {method} {url} with args={request_arguments}" ) with httpx.Client( @@ -510,7 +511,7 @@ async def call_tool_async( logger.debug( f"Calling FunctionCall tool async: {method} {url} with" - f" args={arguments}" + f" args={request_arguments}" ) async with httpx.AsyncClient( diff --git a/tests/unittests/tool/test_openapi.py b/tests/unittests/tool/test_openapi.py index 1ce4041..0c99a48 100644 --- a/tests/unittests/tool/test_openapi.py +++ b/tests/unittests/tool/test_openapi.py @@ -966,7 +966,7 @@ async def test_call_tool_async_uses_fixed_headers_and_filters_arguments( mock_client_instance.__aenter__ = AsyncMock( return_value=mock_client_instance ) - mock_client_instance.__aexit__ = AsyncMock() + mock_client_instance.__aexit__ = AsyncMock(return_value=False) mock_async_client_class.return_value = mock_client_instance spec = json.dumps({