Skip to main content

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.md
  • docs/providers/index.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aikernel_providers-0.1.1-py3-none-any.whl (963.4 kB view details)

Uploaded Python 3

File details

Details for the file aikernel_providers-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aikernel_providers-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8714552fad10ca9bd9311d3ee99c391a83c15125c3cb24038214cabedc4b8fc
MD5 9a64a9c77f9cc3cccc876005e6e88c40
BLAKE2b-256 d21f0acdb999bd55c9f50053f44f05a5cee7cf95dd8c6816d5e71098794629f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page