-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
openllm-client/src/openllm_client/benmin/descriptors/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.