jdcloud-agentgrid 0.2.1__tar.gz → 0.2.3__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.
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/PKG-INFO +1 -1
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/pyproject.toml +1 -1
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/base_app.py +1 -1
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/simple_app_handlers.py +2 -13
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/config.py +1 -1
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/version.py +1 -1
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/.gitignore +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/README.md +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/simple_app.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/credential_chain.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/providers.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/errors.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/observability/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/browser_client.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/code_interpreter_client.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/code_interpreter_models.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/profile.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/client.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/models.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/session.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/__init__.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/runtime_adapter.py +0 -0
- {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/runtime_data_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jdcloud_agentgrid
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: AgentGrid Python SDK for JDCloud AgentGrid Runtime
|
|
5
5
|
Project-URL: Homepage, https://github.com/agentgrid/agentgrid-python
|
|
6
6
|
Project-URL: Repository, https://github.com/agentgrid/agentgrid-python
|
|
@@ -141,23 +141,12 @@ class InvokeHandler(BaseHandler):
|
|
|
141
141
|
class PingHandler(BaseHandler):
|
|
142
142
|
"""`/ping` 与健康检查处理器。"""
|
|
143
143
|
|
|
144
|
-
def __init__(self, func: Callable[..., Any] | None = None) -> None:
|
|
145
|
-
super().__init__(func=func)
|
|
146
|
-
self._default_ping_updated_at = int(time.time())
|
|
147
|
-
|
|
148
144
|
async def handle(self, request: Request) -> Response:
|
|
149
145
|
del request
|
|
150
146
|
|
|
151
147
|
if not self.func:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"status": "Healthy",
|
|
155
|
-
"time_of_last_update": self._default_ping_updated_at,
|
|
156
|
-
},
|
|
157
|
-
media_type="application/json",
|
|
158
|
-
)
|
|
159
|
-
|
|
160
|
-
if asyncio.iscoroutinefunction(self.func):
|
|
148
|
+
result = "pong"
|
|
149
|
+
elif asyncio.iscoroutinefunction(self.func):
|
|
161
150
|
result = await self.func()
|
|
162
151
|
else:
|
|
163
152
|
result = self.func()
|
|
@@ -20,7 +20,7 @@ import yaml
|
|
|
20
20
|
|
|
21
21
|
DEFAULT_RUNTIME_ENDPOINT_HOST = "agentgrid.jdcloud-api.com"
|
|
22
22
|
DEFAULT_RUNTIME_ENDPOINT = f"http://{DEFAULT_RUNTIME_ENDPOINT_HOST}"
|
|
23
|
-
DEFAULT_RUNTIME_DATA_ENDPOINT = "
|
|
23
|
+
DEFAULT_RUNTIME_DATA_ENDPOINT = "https://agentgrid-api-cn-north-1.jdcloud.com"
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
@dataclass(slots=True, frozen=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/__init__.py
RENAMED
|
File without changes
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/simple_app.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/__init__.py
RENAMED
|
File without changes
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/browser_client.py
RENAMED
|
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
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/runtime_adapter.py
RENAMED
|
File without changes
|
{jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/runtime_data_client.py
RENAMED
|
File without changes
|