From 0563010da19d45e9a5dfb683b775174230772ec5 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 24 Apr 2025 11:30:42 +0530 Subject: [PATCH 1/3] chore: update toolbox version --- packages/toolbox-core/integration.cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/toolbox-core/integration.cloudbuild.yaml b/packages/toolbox-core/integration.cloudbuild.yaml index 86813f12..ec39c732 100644 --- a/packages/toolbox-core/integration.cloudbuild.yaml +++ b/packages/toolbox-core/integration.cloudbuild.yaml @@ -43,4 +43,4 @@ options: logging: CLOUD_LOGGING_ONLY substitutions: _VERSION: '3.13' - _TOOLBOX_VERSION: '0.3.0' + _TOOLBOX_VERSION: '0.4.0' From 776268eb908434859cffe60af2abc0aeeea6148e Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 24 Apr 2025 11:31:17 +0530 Subject: [PATCH 2/3] Update integration.cloudbuild.yaml --- packages/toolbox-langchain/integration.cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/toolbox-langchain/integration.cloudbuild.yaml b/packages/toolbox-langchain/integration.cloudbuild.yaml index 247e1861..ee3a04b2 100644 --- a/packages/toolbox-langchain/integration.cloudbuild.yaml +++ b/packages/toolbox-langchain/integration.cloudbuild.yaml @@ -43,4 +43,4 @@ options: logging: CLOUD_LOGGING_ONLY substitutions: _VERSION: '3.13' - _TOOLBOX_VERSION: '0.3.0' + _TOOLBOX_VERSION: '0.4.0' From e4a81df2288f1c8b8d843882baf1138ad3b047dd Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Mon, 28 Apr 2025 15:07:14 +0530 Subject: [PATCH 3/3] docs: fix auth required error log (#196) * docs: fix auth required error log * lint * try out * fix * Update integration.cloudbuild.yaml --- packages/toolbox-langchain/tests/test_e2e.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/toolbox-langchain/tests/test_e2e.py b/packages/toolbox-langchain/tests/test_e2e.py index 940c01bd..8945657a 100644 --- a/packages/toolbox-langchain/tests/test_e2e.py +++ b/packages/toolbox-langchain/tests/test_e2e.py @@ -126,8 +126,8 @@ async def test_run_tool_no_auth(self, toolbox): "get-row-by-id-auth", ) with pytest.raises( - ToolException, - match="{'status': 'Unauthorized', 'error': 'tool invocation not authorized. Please make sure your specify correct auth headers'}", + PermissionError, + match="Tool get-row-by-id-auth requires authentication, but no valid authentication sources are registered. Please register the required sources before use.", ): await tool.ainvoke({"id": "2"}) @@ -266,8 +266,8 @@ def test_run_tool_no_auth(self, toolbox): "get-row-by-id-auth", ) with pytest.raises( - ToolException, - match="{'status': 'Unauthorized', 'error': 'tool invocation not authorized. Please make sure your specify correct auth headers'}", + PermissionError, + match="Tool get-row-by-id-auth requires authentication, but no valid authentication sources are registered. Please register the required sources before use.", ): tool.invoke({"id": "2"})