agent-handler-sdk 0.1.3__tar.gz → 0.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agent-handler-sdk might be problematic. Click here for more details.
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/PKG-INFO +1 -1
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/auth.py +6 -1
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/pyproject.toml +1 -1
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/__init__.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/cli.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/connector.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/exceptions.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/invocation.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/registry.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/README.md.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/handlers.py.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/init.py.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/metadata.yaml.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/pyproject.toml.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/templates/connector/test_handlers.py.tpl +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/tool.py +0 -0
- {agent_handler_sdk-0.1.3 → agent_handler_sdk-0.1.4}/agent_handler_sdk/utils.py +0 -0
|
@@ -11,9 +11,14 @@ class AuthContext:
|
|
|
11
11
|
Each tool execution should receive its own instance.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
def __init__(self, secrets: Optional[dict[str, str]] = None):
|
|
14
|
+
def __init__(self, secrets: Optional[dict[str, str]] = None, oauth2_token: Optional[str] = None):
|
|
15
15
|
self._secrets = secrets or {}
|
|
16
|
+
self._oauth2_token = oauth2_token
|
|
16
17
|
|
|
17
18
|
def get(self, key: str, default: Optional[str] = None) -> Optional[str]:
|
|
18
19
|
"""Get a secret value by key"""
|
|
19
20
|
return self._secrets.get(key, default)
|
|
21
|
+
|
|
22
|
+
def get_oauth2_token(self) -> Optional[str]:
|
|
23
|
+
"""Get the OAuth token from the secrets"""
|
|
24
|
+
return self._oauth2_token
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|