Skip to main content
NiadraContextProvider is an Agent Framework context provider: before each run it adds the pack to the instructions and the history tools to the agent, and records the turns. Python only.

Install

The five primitives

Minimal example

The same code is in examples/agent_framework_agent.py.

Agent memory

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

Limits

  • This is the adapter for the Agent Framework, AutoGen’s successor in Microsoft’s line. AutoGen’s community continuation, AG2 1.x, has an adapter of its own; an AutoGen 0.4 agent uses the kit’s tools and conversation.context() directly.
  • Nothing here fails the run: without a pack, the instructions stay yours alone.
  • Tested against agent-framework-core 1.19 with the model replaced by a fake and Niadra on the emulator.

Next steps

OpenAI and Azure OpenAI

the client wrap(), for those calling the model directly.

Internal agents

tasks, objects and actions that close open items.