Skip to content

Commit

Permalink
chore: bootstrap --wip--
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Sep 20, 2023
1 parent 0e3a093 commit 8bfa9fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions openllm-client/src/openllm_client/benmin/descriptors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""'openllm_client.benmin.decsriptors' holds a minimal implementation of some IO Descriptors protocol.
This is subjected to change as we are currently refactoring and rework on the new generation of IO descriptors protocol. This package is meant to be used internally
and vendorred for performance reasons."""
from __future__ import annotations
import typing as t

_supported: dict[str, t.Any] = {'bentoml.io.JSON': 'json', 'bentoml.io.Text': 'text'}

class OpenApiSpec(t.TypedDict):
id: str
args: t.Dict[str, t.Any]

def from_spec(spec: dict[str, t.Any]) -> IODescriptor[t.Any]:
...

T = t.TypeVar('T')

class IODescriptor(t.Generic[T]):
...
Empty file.
Empty file.

0 comments on commit 8bfa9fe

Please sign in to comment.