visionai-sdk-python 2.2.0.dev6__py3-none-any.whl → 2.2.0.dev7__py3-none-any.whl

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.
@@ -1,7 +1,8 @@
1
1
  """The platform-relay wire protocol, shared by platform-relay and platform-edge-agent.
2
2
 
3
- Internal to the platform; the spec is platform-service's
4
- ``docs/adr/0001-relay-protocol.md``. See :mod:`.protocol`.
3
+ Internal to the platform. The wire format is specified in ``docs/relay-protocol.md``
4
+ of this repository; platform-service's ``docs/adr/0001-relay-protocol.md`` records the
5
+ decisions around it. See :mod:`.protocol`.
5
6
  """
6
7
 
7
8
  from .protocol import (
@@ -1,4 +1,4 @@
1
- """The ADR's JSON examples, shipped so every implementation tests against the same frames.
1
+ """The wire-format spec's JSON examples, shipped so every implementation tests against the same frames.
2
2
 
3
3
  ``example("register")`` is the parsed object, ``example_text("register")`` the wire text.
4
4
  """
@@ -19,7 +19,7 @@ NAMES = (
19
19
 
20
20
 
21
21
  def example_text(name: str) -> str:
22
- """One ADR example as the text that goes over the wire."""
22
+ """One spec example as the text that goes over the wire."""
23
23
  return (files(__package__) / f"{name}.json").read_text(encoding="utf-8")
24
24
 
25
25
 
@@ -1,7 +1,7 @@
1
1
  """Wire format between platform-relay and platform-edge-agent.
2
2
 
3
- The spec is platform-service's ``docs/adr/0001-relay-protocol.md``; this module is
4
- the one implementation both sides import. Frames are JSON objects told apart by
3
+ The spec is ``docs/relay-protocol.md`` in this repository (the decisions behind it:
4
+ platform-service's ADR 0001); this module is the one implementation both sides import. Frames are JSON objects told apart by
5
5
  ``type``. Receivers ignore unknown fields, and the string-typed ``reason`` /
6
6
  ``code`` fields accept values they do not know, so either side can be upgraded
7
7
  first.
@@ -71,8 +71,7 @@ class Frame(BaseModel):
71
71
  class ModelEntry(Frame):
72
72
  name: str
73
73
  version: str
74
- # Required by the ADR. A receiver counts None as 0 and logs it: the sender has a bug.
75
- replicas: int | None = Field(default=None, ge=0)
74
+ replicas: int = Field(ge=0)
76
75
 
77
76
 
78
77
  class WorkspaceEntry(Frame):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: visionai-sdk-python
3
- Version: 2.2.0.dev6
3
+ Version: 2.2.0.dev7
4
4
  Summary: VisionAI SDK for Python
5
5
  Author-email: Tony Yang <tonyyang@linkervision.com>
6
6
  Requires-Python: >=3.11
@@ -177,11 +177,13 @@ authentication wins. `vlm_url` is optional for clients that only authenticate.
177
177
  `visionai_sdk_python.relay` holds the wire format between platform-relay and
178
178
  platform-edge-agent: the frame models, the constants and `parse_agent_frame()` /
179
179
  `parse_relay_frame()` (text frames only: `bytes` or `None` is an `InvalidFrame`) /
180
- `dump_frame()` (which refuses a frame over `MAX_FRAME_BYTES`). The spec is platform-service's
181
- `docs/adr/0001-relay-protocol.md`; both sides import this module instead of keeping a
182
- copy. The ADR's JSON examples ship with it (`visionai_sdk_python.relay.examples`:
183
- `example(name)` / `example_text(name)`), so every implementation tests against the same
184
- frames. It is internal to the platform and not a public API.
180
+ `dump_frame()` (which refuses a frame over `MAX_FRAME_BYTES`). The spec is
181
+ [`docs/relay-protocol.md`](docs/relay-protocol.md); both sides import this module instead of
182
+ keeping a copy, and a protocol change edits the spec and the module in one PR. The spec's
183
+ JSON examples ship with it (`visionai_sdk_python.relay.examples`: `example(name)` /
184
+ `example_text(name)`), so every implementation tests against the same frames. The decisions
185
+ behind the protocol are platform-service's `docs/adr/0001-relay-protocol.md`. It is internal
186
+ to the platform and not a public API.
185
187
 
186
188
  ## VLM Inference
187
189
 
@@ -16,9 +16,9 @@ visionai_sdk_python/auth/async_resource.py,sha256=V6O51i7KyYSBkiQeKAbmw-EIKMVZIo
16
16
  visionai_sdk_python/auth/credentials.py,sha256=hxigy3hB09lWqmhhcw_QFqYVD-8fHIyvupZYowCIycw,13360
17
17
  visionai_sdk_python/auth/models.py,sha256=u6MDFYaWMyf08XCrGZzwPHv43d6AElH9XO2QSjRsb3Q,449
18
18
  visionai_sdk_python/auth/resource.py,sha256=3PgcxH8N6unKTs2jSQhMeJT_lg6bTce0hz0bzuID12U,5446
19
- visionai_sdk_python/relay/__init__.py,sha256=yqYdedHUBCo-E9wmVY9Xfa5r9zbOLeii-p6HYTdgzvY,1384
20
- visionai_sdk_python/relay/protocol.py,sha256=8KvMActRq2iwk8XF94v0Ze3VFAAl6-fAb64BJUDKL7I,7128
21
- visionai_sdk_python/relay/examples/__init__.py,sha256=GvjlP-EtrhDVgqReOYqcf1mObND61vO6Q8CT_YFfgDM,732
19
+ visionai_sdk_python/relay/__init__.py,sha256=Z6iJ_Cd-VQVWAF5Tpr_N4oYl13V8eRyp-r22siXz3Uc,1483
20
+ visionai_sdk_python/relay/protocol.py,sha256=LljyVBx9WA4vd-zDKERAkZ7hB8jh7emcZCMULx4n-2U,7063
21
+ visionai_sdk_python/relay/examples/__init__.py,sha256=g3N3XGIUPE8iDGxb0DD4cPm6dt56o9z6Rqnf9PjRBIs,746
22
22
  visionai_sdk_python/relay/examples/error_connection.json,sha256=stjkXo27Vkhoy0rNtPUti2OEXzioxJ8Aqgyq2hAdquA,81
23
23
  visionai_sdk_python/relay/examples/error_request.json,sha256=iUB11sSf1vuBAdzvoiHAoUoifZoG4-wGBK6gb0ConjA,228
24
24
  visionai_sdk_python/relay/examples/heartbeat.json,sha256=CZKMBTkVxtLzY05bQW7AkCULJAIu-7RUVjgc7hTgg9I,22
@@ -33,7 +33,7 @@ visionai_sdk_python/vlm/async_resource.py,sha256=meMUfBDa0g1hk7vFZq2fDuIQ1-QUpU0
33
33
  visionai_sdk_python/vlm/models.py,sha256=yDFjo4LfAxqXYBnl6ZW7YUJQoKKRkQWtqBJi2ruI6Jw,984
34
34
  visionai_sdk_python/vlm/preprocess.py,sha256=ZpJJa13h8_YKwh_P7Pn8WIXV0x-r2xJi-ETgCFsGw-Y,7892
35
35
  visionai_sdk_python/vlm/resource.py,sha256=4eMQ4ACcgd7nUfdRyADWmPd8yZ--uqQC4zwzBft68lg,3386
36
- visionai_sdk_python-2.2.0.dev6.dist-info/METADATA,sha256=gPr3oj2wON5pearcb_fq_-FGNQ6fL7oOup3f0tLX9jM,31131
37
- visionai_sdk_python-2.2.0.dev6.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
38
- visionai_sdk_python-2.2.0.dev6.dist-info/top_level.txt,sha256=79a5MCSLLv6Mbfun-8RS-G6O927hahBwDqJjeuWLdvM,20
39
- visionai_sdk_python-2.2.0.dev6.dist-info/RECORD,,
36
+ visionai_sdk_python-2.2.0.dev7.dist-info/METADATA,sha256=5d969v2YO3Lk-1KEAPZyrmpzgdFNaus8ad16fay-6so,31285
37
+ visionai_sdk_python-2.2.0.dev7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
38
+ visionai_sdk_python-2.2.0.dev7.dist-info/top_level.txt,sha256=79a5MCSLLv6Mbfun-8RS-G6O927hahBwDqJjeuWLdvM,20
39
+ visionai_sdk_python-2.2.0.dev7.dist-info/RECORD,,