InferenceGateway.Contracts
1.0.1
dotnet add package InferenceGateway.Contracts --version 1.0.1
NuGet\Install-Package InferenceGateway.Contracts -Version 1.0.1
<PackageReference Include="InferenceGateway.Contracts" Version="1.0.1" />
<PackageVersion Include="InferenceGateway.Contracts" Version="1.0.1" />
<PackageReference Include="InferenceGateway.Contracts" />
paket add InferenceGateway.Contracts --version 1.0.1
#r "nuget: InferenceGateway.Contracts, 1.0.1"
#:package InferenceGateway.Contracts@1.0.1
#addin nuget:?package=InferenceGateway.Contracts&version=1.0.1
#tool nuget:?package=InferenceGateway.Contracts&version=1.0.1
InferenceGateway.Contracts
Shared contracts and protobuf definitions for InferenceGateway gRPC services.
Overview
This package contains the protobuf definitions and generated C# code for communicating with InferenceGateway services. The Inference Gateway is designed to give end users ownership of their AI models and enable other services to consume them, rather than mandating subscriptions or service-managed AI.
It includes:
- ModelRegistry service for managing AI models
- ModelRuntime service for executing inference requests
- All necessary message types and enums
For the main project and service implementation, see the GitHub Repository.
Installation
dotnet add package InferenceGateway.Contracts
Usage
Add the package to your project and use the generated gRPC clients to interact with InferenceGateway instances.
All RPCs require an x-app-id gRPC metadata header. The gateway uses it for authorization and usage attribution.
Required Metadata
x-app-id: Your application id (must be registered/allowed by the gateway)
Services
- ModelRegistry: List, get, upsert, and delete models
- ModelRuntime: Get model info and execute inference requests (synchronous and streaming)
Requirements
- .NET 10.0 or later
- Compatible with gRPC .NET client libraries
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Google.Protobuf (>= 3.33.2)
- Grpc.Net.Client (>= 2.76.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.