Python wrapper for AIKernel.Providers v0.1.1 official extension providers with bundled managed assemblies and pythonnet loading.
Project description
aikernel-providers
Official Python wrappers for AIKernel extension providers.
aikernel-providers exposes provider contract boundaries from the C#
AIKernel.Providers assemblies without re-implementing provider semantics in
Python.
Import Surface
from aikernel_providers import (
ChatOpenAICapability,
ChatOpenAIProvider,
ChatOpenAISettings,
ChatHistoryCapability,
ChatHistoryProvider,
ChatHistorySettings,
CudaComputeCapability,
CudaComputeProvider,
CudaComputeSettings,
DynamicPipelineCompilerCapability,
DynamicPipelineCompilerProvider,
DynamicPipelineCompilerSettings,
LocalLlmCapability,
LocalLlmProvider,
LocalLlmSettings,
MicrosoftAIProvider,
MicrosoftAIProviderCapabilities,
MicrosoftAIProviderOptions,
CpuComputeProvider,
standard_driver_contracts,
provider_assemblies,
)
Example
from aikernel_providers import ChatOpenAICapability, provider_assemblies
capability = ChatOpenAICapability("openai.chat").to_contract()
print(capability.capability_id)
print(capability.provided_operations)
assemblies = provider_assemblies()
print(assemblies.is_complete())
The wheel bundles provider assemblies when built from the repository package workflow. At runtime, pythonnet loads the managed assemblies and Python objects delegate to the C# contract surface.
The Python package includes wrappers for the public Provider, Invoker,
Capability descriptor, Settings, MicrosoftAI option/capability/response mapping
surfaces, and AIKernel.Providers.Standard OS driver descriptors. C# hosting-
specific extension methods remain C# APIs, while the wheel still bundles their
assembly dependencies so the managed runtime can resolve them on Windows,
Linux, and macOS.
Included Providers
- ChatOpenAIProvider
- ChatHistoryProvider
- CudaComputeProvider
- DynamicPipelineCompilerProvider
- LocalLlmProvider
- AIKernel.Providers.MicrosoftAI
- AIKernel.Providers.Standard
MicrosoftAI support is included because ownership of that provider moved from AIKernel.Core to AIKernel.Providers for the 0.1.1 release.
See the repository documentation for the full package scope:
docs/python/index.mddocs/providers/index.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aikernel_providers-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aikernel_providers-0.1.1-py3-none-any.whl
- Upload date:
- Size: 963.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8714552fad10ca9bd9311d3ee99c391a83c15125c3cb24038214cabedc4b8fc
|
|
| MD5 |
9a64a9c77f9cc3cccc876005e6e88c40
|
|
| BLAKE2b-256 |
d21f0acdb999bd55c9f50053f44f05a5cee7cf95dd8c6816d5e71098794629f8
|