Download python/sdk/src/deepseek_harness/models.py from SaylorTwift/deepseek-harness: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/python/sdk/src/deepseek_harness/models.py
- Command line
-
hf download hf://SaylorTwift/deepseek-harness/python/sdk/src/deepseek_harness/models.py
-
curl -L -o models.py https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/python/sdk/src/deepseek_harness/models.py
673 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import TypeAlias | |
| from pydantic import BaseModel | |
| JsonScalar: TypeAlias = str | int | float | bool | None | |
| JsonValue: TypeAlias = JsonScalar | dict[str, "JsonValue"] | list["JsonValue"] | |
| JsonObject: TypeAlias = dict[str, JsonValue] | |
| class Notification: | |
| method: str | |
| payload: JsonObject | |
| class IncomingRequest: | |
| id: str | int | |
| method: str | |
| payload: JsonObject | |
| class ServerInfo(BaseModel): | |
| name: str | None = None | |
| version: str | None = None | |
| class InitializeResponse(BaseModel): | |
| serverInfo: ServerInfo | None = None | |