File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ def __init__(
6666 name = name ,
6767 description = description ,
6868 )
69+ self ._auth_config = auth_config
6970
7071 if auth_config and auth_config .auth_scheme :
7172 self ._credentials_manager = CredentialManager (auth_config = auth_config )
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ def test_init_with_auth_config(self):
9090 assert tool .description == "Test description"
9191 assert tool ._credentials_manager is not None
9292 assert tool ._response_for_auth_required == unauthenticated_response
93+ assert tool ._auth_config == auth_config
9394
9495 def test_init_with_no_auth_config (self ):
9596 """Test initialization without auth_config."""
@@ -99,6 +100,7 @@ def test_init_with_no_auth_config(self):
99100 assert tool .description == "Test authenticated tool"
100101 assert tool ._credentials_manager is None
101102 assert tool ._response_for_auth_required is None
103+ assert tool ._auth_config is None
102104
103105 def test_init_with_empty_auth_scheme (self ):
104106 """Test initialization with auth_config but no auth_scheme."""
You can’t perform that action at this time.
0 commit comments