PluginsProcurement

Procurement

@agorio/plugin-procurement adds the B2B procurement concerns that turn a shopping agent into a purchasing agent: purchase-order tracking, vendor lookup, and expense categorization. It hooks both onBeforeToolCall and onAfterToolCall.

import { procurement } from '@agorio/plugin-procurement';
 
const agent = new ShoppingAgent({
  llm,
  plugins: [
    procurement({
      poNumber: 'PO-2026-0042',
      vendors: { /* approved-vendor directory */ },
      categorize: (item) => 'office-supplies',
    }),
  ],
});

What it tracks

  • PO# tracking — associate each purchase with a purchase-order number.
  • Vendor lookup — resolve and validate merchants against an approved-vendor directory.
  • Expense categorization — tag purchases with expense categories for downstream accounting.

This is the headline plugin of the B2B procurement vertical. The runnable reference agent in examples/procurement/ chains it with all five other governance plugins over three mock merchants. It’s MIT-licensed and published as @agorio/plugin-procurement.