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.
Files changed (30) hide show
  1. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/PKG-INFO +1 -1
  2. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/pyproject.toml +1 -1
  3. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/base_app.py +1 -1
  4. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/simple_app_handlers.py +2 -13
  5. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/config.py +1 -1
  6. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/version.py +1 -1
  7. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/.gitignore +0 -0
  8. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/README.md +0 -0
  9. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/__init__.py +0 -0
  10. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/__init__.py +0 -0
  11. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/__init__.py +0 -0
  12. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/apps/simple_app/simple_app.py +0 -0
  13. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/__init__.py +0 -0
  14. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/credential_chain.py +0 -0
  15. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/auth/providers.py +0 -0
  16. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/errors.py +0 -0
  17. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/__init__.py +0 -0
  18. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/observability/__init__.py +0 -0
  19. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/__init__.py +0 -0
  20. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/browser_client.py +0 -0
  21. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/code_interpreter_client.py +0 -0
  22. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/extensions/tools/code_interpreter_models.py +0 -0
  23. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/profile.py +0 -0
  24. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/__init__.py +0 -0
  25. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/client.py +0 -0
  26. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/runtime/models.py +0 -0
  27. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/session.py +0 -0
  28. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/__init__.py +0 -0
  29. {jdcloud_agentgrid-0.2.1 → jdcloud_agentgrid-0.2.3}/src/agentgrid/transport/runtime_adapter.py +0 -0
  30. {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.1
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "jdcloud_agentgrid"
7
- version = "0.2.1"
7
+ version = "0.2.3"
8
8
  description = "AgentGrid Python SDK for JDCloud AgentGrid Runtime"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -9,5 +9,5 @@ class BaseAgentGridApp(ABC):
9
9
  """应用层统一运行接口。"""
10
10
 
11
11
  @abstractmethod
12
- def run(self, host: str | None = None, port: int = 8080) -> None:
12
+ def run(self, host: str | None = None, port: int = 8000) -> None:
13
13
  """启动应用服务。"""
@@ -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
- return JSONResponse(
153
- content={
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 = "http://agentgrid-api-cn-north-1.jdcloud.com"
23
+ DEFAULT_RUNTIME_DATA_ENDPOINT = "https://agentgrid-api-cn-north-1.jdcloud.com"
24
24
 
25
25
 
26
26
  @dataclass(slots=True, frozen=True)
@@ -3,4 +3,4 @@
3
3
  v1 基线采用语义化版本策略,当前为初始开发版本。
4
4
  """
5
5
 
6
- __version__ = "0.2.1"
6
+ __version__ = "0.2.3"