Skip to main content
NiadraKernel brings three pieces: register(kernel) adds the niadra plugin and two filters (prompt rendering and function invocation) to the kernel, thread() is a ChatCompletionAgent thread, and plugin is the kit as a KernelPlugin. Python only.

Install

The five primitives

Minimal example

The same code is in examples/semantic_kernel_agent.py.

Agent memory

NiadraKernel(conversation, agent_memory=True) puts the agent’s own notes before the customer’s context and adds the two tools to the plugin. See Agent memory.

Limits

  • Works with Niadra and AsyncNiadra conversations.
  • Nothing here stops the kernel: with Niadra slow or down, the prompt goes out without the pack and a tool answers that the history is unavailable.
  • The extra installs a pre-release of azure-ai-agents, which semantic-kernel 1.44 requires.
  • Tested against semantic-kernel 1.44.1 with the chat service replaced by a fake and Niadra on the emulator.

Next steps

Microsoft Agent Framework

the context provider of AutoGen’s successor.

Agent memory

the agent’s own working notes.