Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions agentrun/tool/api/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/unittests/tool/test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down