agent-handler-sdk 0.1.0__tar.gz → 0.1.2__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.0 → agent_handler_sdk-0.1.2}/PKG-INFO +1 -1
- agent_handler_sdk-0.1.2/agent_handler_sdk/__init__.py +1 -0
- agent_handler_sdk-0.1.2/agent_handler_sdk/auth.py +15 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/cli.py +1 -1
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/templates/connector/init.py.tpl +1 -1
- agent_handler_sdk-0.1.2/agent_handler_sdk/templates/connector/metadata.yaml.tpl +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/templates/connector/test_handlers.py.tpl +1 -1
- {agent_handler_sdk-0.1.0 → agent_handler_sdk-0.1.2}/pyproject.toml +3 -3
- agent_handler_sdk-0.1.0/agent_handler/__init__.py +0 -1
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/connector.py +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/exceptions.py +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/invocation.py +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/registry.py +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/templates/connector/README.md.tpl +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/templates/connector/handlers.py.tpl +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/templates/connector/pyproject.toml.tpl +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/tool.py +0 -0
- {agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# agent_handler_sdk package root
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# agent_handler_sdk/auth.py
|
|
2
|
+
|
|
3
|
+
class AuthContext:
|
|
4
|
+
"""
|
|
5
|
+
Auth context for tool execution that provides secure access to secrets.
|
|
6
|
+
|
|
7
|
+
This class provides an isolated container for secrets during tool execution.
|
|
8
|
+
Each tool execution should receive its own instance.
|
|
9
|
+
"""
|
|
10
|
+
def __init__(self, secrets=None):
|
|
11
|
+
self._secrets = secrets or {}
|
|
12
|
+
|
|
13
|
+
def get(self, key, default=None):
|
|
14
|
+
"""Get a secret value by key"""
|
|
15
|
+
return self._secrets.get(key, default)
|
|
@@ -11,7 +11,7 @@ except ImportError:
|
|
|
11
11
|
import tomli as toml
|
|
12
12
|
|
|
13
13
|
# Use str() to convert Traversable to string path
|
|
14
|
-
TEMPLATE_DIR = Path(str(pkg_resources.files("
|
|
14
|
+
TEMPLATE_DIR = Path(str(pkg_resources.files("agent_handler_sdk"))) / "templates" / "connector"
|
|
15
15
|
SDK_ROOT = Path(__file__).parent.parent # adjust if your structure is different
|
|
16
16
|
|
|
17
17
|
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "agent-handler-sdk"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
description = "Agent Handler SDK for defining and invoking LLM tools"
|
|
5
5
|
authors = ["David Dalmaso <david.dalmaso@merge.dev>"]
|
|
6
6
|
packages = [
|
|
7
|
-
{ include = "
|
|
7
|
+
{ include = "agent_handler_sdk" }
|
|
8
8
|
]
|
|
9
9
|
|
|
10
10
|
[tool.poetry.dependencies]
|
|
@@ -26,7 +26,7 @@ pre-commit = "^2.20.0"
|
|
|
26
26
|
types-jsonschema = "^4.23.0.20241208"
|
|
27
27
|
|
|
28
28
|
[tool.poetry.scripts]
|
|
29
|
-
ahs-scaffold = "
|
|
29
|
+
ahs-scaffold = "agent_handler_sdk.cli:scaffold_connector"
|
|
30
30
|
|
|
31
31
|
[build-system]
|
|
32
32
|
requires = ["poetry-core>=1.0.0"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# agent_handler package root
|
{agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/connector.py
RENAMED
|
File without changes
|
{agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/exceptions.py
RENAMED
|
File without changes
|
{agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/invocation.py
RENAMED
|
File without changes
|
{agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/registry.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agent_handler_sdk-0.1.0/agent_handler → agent_handler_sdk-0.1.2/agent_handler_sdk}/utils.py
RENAMED
|
File without changes
|