Module: types
ChainInfo
Bases: TypedDict
Chain information for the node.
Attributes:
Name | Type | Description |
---|---|---|
address |
str
|
The address of the chain. |
enabled |
bool
|
Whether the chain is enabled. |
Source code in src/infernet_client/types.py
Container
Bases: TypedDict
Container information.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The container ID. |
description |
str
|
The description of the container. |
external |
bool
|
Whether the container is external. |
image |
str
|
The image of the container. |
Source code in src/infernet_client/types.py
ContainerError
Bases: TypedDict
Container error.
Attributes:
Name | Type | Description |
---|---|---|
container |
str
|
The container name. |
error |
str
|
The error message. |
Source code in src/infernet_client/types.py
ContainerOutput
Bases: TypedDict
Container output.
Attributes:
Name | Type | Description |
---|---|---|
container |
str
|
The container name. |
output |
Any
|
The output of the container. |
Source code in src/infernet_client/types.py
ErrorResponse
Bases: TypedDict
Error response.
Attributes:
error: The error message.
params: The parameters of the error.
Source code in src/infernet_client/types.py
HealthInfo
Bases: TypedDict
Health information for the server.
Attributes:
Name | Type | Description |
---|---|---|
status |
Literal['healthy', 'unhealthy']
|
The health status of the server. |
Source code in src/infernet_client/types.py
JobRequest
Bases: TypedDict
Job request.
Attributes:
Name | Type | Description |
---|---|---|
containers |
list[str]
|
The list of container names. |
data |
dict[str, Any]
|
The data to pass to the containers. |
requires_proof |
NotRequired[Optional[bool]]
|
Whether the job requires proof. |
Source code in src/infernet_client/types.py
JobResponse
Bases: TypedDict
Job response for asynchronous job requests.
Attributes:
Name | Type | Description |
---|---|---|
id |
JobID
|
The job ID. |
Source code in src/infernet_client/types.py
JobResult
Bases: TypedDict
Job result.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The job ID. |
status |
JobStatus
|
The job status. |
result |
Optional[ContainerResult]
|
The job result. |
intermediate |
NotRequired[list[ContainerResult]]
|
Job result from intermediate containers. |
Source code in src/infernet_client/types.py
ModelSupport
Bases: TypedDict
Model support.
Attributes:
Name | Type | Description |
---|---|---|
supported |
bool
|
Whether the model is supported. |
error |
NotRequired[str]
|
A message explaining why the model ID is erroneous. |
Source code in src/infernet_client/types.py
NetworkContainer
Network container.
Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The container ID. |
count |
int
|
The number of containers in the network. |
description |
Optional[str]
|
The container description. |
Source code in src/infernet_client/types.py
NodeInfo
Bases: TypedDict
Node information.
Attributes:
Name | Type | Description |
---|---|---|
version |
str
|
The version of the node. |
chain |
ChainInfo
|
The chain information. |
containers |
list[Container]
|
The container information. |
pending |
PendingJobInfo
|
The pending job information. |
Source code in src/infernet_client/types.py
PendingJobInfo
Bases: TypedDict
Pending job information.
Attributes:
Name | Type | Description |
---|---|---|
offchain |
int
|
The number of offchain jobs. |
onchain |
int
|
The number of onchain jobs. |