Protocol Buffers
Overview
Services
GatewayClientService
service GatewayClientService {
// Submit an inference task
rpc SubmitInferenceTask(InferenceRequest) returns (InferenceTaskStatus);
// Subscribe to task updates (streaming)
rpc SubscribeToTaskUpdates(TaskID) returns (stream InferenceResponse);
// Get current task status
rpc GetTaskStatus(TaskID) returns (InferenceTaskStatus);
// Cancel a task
rpc CancelTask(TaskID) returns (Ack);
// Confirm payment was made
rpc ConfirmPayment(TransactionConfirmation) returns (Ack);
// Get supported models
rpc GetSupportedModels(Empty) returns (stream ModelInfo);
}GatewayComputeService
P2PRegistryService
Core Messages
InferenceRequest
InferenceResponse
NodeInfo
Payment Messages
PaymentTree
PreprocessingValidation
TransactionConfirmation
ComputeCompletion
CompletionValidation
ValidatorSignature
Subnet Messages
SubnetMetadata
ModelDescriptor
CreateSubnetRequest
Status Messages
InferenceTaskStatus
PaymentStatus
Utility Messages
TaskID
Ack
Empty
WalletAddress
Error Handling
gRPC Status Codes
Code
Meaning
When Used
Code Generation
Rust (tonic)
Python
Go
JavaScript
Related Documentation
Last updated
