@sigmodx/sdk
v0.5.0
Published
Sigmodx SDK for agent instrumentation (invoice approval, GL review, anomaly detection, trade execution, forecast generation)
Readme
Sigmodx TypeScript SDK
npm install @sigmodx/sdkQuickstart
import { SigmodxClient, hashInputs } from '@sigmodx/sdk';
const payload = {
invoice_amount: 142500,
vendor_id: 'VENDOR-4821',
po_reference: 'PO-4821',
};
const client = new SigmodxClient(process.env.SIGMODX_API_KEY!, process.env.AGENT_ID!);
const result = await client.submitInvoiceDecision({
decisionType: 'approve',
inputHash: hashInputs(payload),
rationale: 'Within delegated authority; PO matches contract.',
confidence: 0.94,
invoiceAmount: 142500,
vendorName: 'Acme Consulting LLC',
vendorId: 'VENDOR-4821',
poReference: 'PO-4821',
delegatedAuthorityLimit: 500000,
});See the Python SDK README for hash_inputs security guidance and error handling (AgentBlockedError, SigmodxError).
