Skip to main content

Python wrapper for AIKernel.Tools v0.1.1 instrumentation contracts with bundled managed assemblies and pythonnet loading.

Project description

aikernel-tools

日本語

Python wrapper for the public instrumentation surface of AIKernel.Tools.

The package bundles the AIKernel.Tools managed assemblies and loads them through pythonnet. Python code receives a single API surface for replay facades, inspection facades, canonical chat-history formatting, and public capability contract descriptors without re-implementing the internal C# semantics.

See Python Tools Wrapper for package scope, managed assembly bundle requirements, Linux CoreCLR loading, and validation guidance.

Install

pip install aikernel-tools

Usage

from aikernel_tools import (
    CanonicalFormatter,
    ChatHistoryRecord,
    InfoCommand,
    MdExporter,
    NowCommand,
    RomExporter,
    RomStorageCapability,
)

capability = RomStorageCapability("tools.rom")
contract = capability.to_contract()

formatter = CanonicalFormatter()
rom = formatter.serialize([
    ChatHistoryRecord("user", "hello", "2026-06-09T00:00:00+00:00")
])

markdown = MdExporter.to_markdown([
    ChatHistoryRecord("assistant", "world", "2026-06-09T00:00:01+00:00")
])
history_rom = RomExporter.to_rom(
    [ChatHistoryRecord("assistant", "world", "2026-06-09T00:00:01+00:00")],
    namespace="python",
    name="history",
)

ReplayEngine, Inspector, and CanonicalFormatter can also delegate to an explicit backend object that exposes the same method names. MdExporter, RomExporter, ChatHistoryScraper, and the inspector command facades such as NowCommand / InfoCommand mirror the public C# names so Python callers can address the same contract surface. This keeps Python as a contract boundary while the implementation stays in the configured tooling runtime.

The wheel bundles AIKernel.Tools.Instrumentation.dll, AIKernel.Tools.Capability.RomStorage.dll, inspector assemblies, AIKernel.NET contract assemblies, AIKernel.Core dependencies, and ChatHistoryProvider.dll.

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_tools-0.1.1-py3-none-any.whl (965.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aikernel_tools-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 965.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for aikernel_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 143310a2dc1e5e5a583847e68fad5a8590789f468a6f6a2a560c65ff2b81b21b
MD5 689ae136a3645985bb9897c1653ecbb7
BLAKE2b-256 c0a8d7bcf136697ebdc450c648e3f18be2ba7975a5f6056228351149cb2e0beb

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