@agent-hub-ai/dispute
v0.1.2
Published
Dispute review agent for customer claims, chargebacks, and policy exceptions.
Downloads
305
Readme
@agent-hub-ai/dispute
Dispute review agent for customer claims, chargebacks, and policy exceptions.
What it does
This package exposes DisputeAgent, which can assess a dispute, summarize the issue, and help determine whether the complaint is valid based on the supplied context and policy inputs.
Installation
npm install @agent-hub-ai/disputeUsage
import { DisputeAgent } from '@agent-hub-ai/dispute';
const llm = {
async generate(prompt: string) {
return JSON.stringify({
valid: true,
outcome: 'pending_manual_review',
reason: 'Order mismatch and delivery delay reported by customer'
});
}
};
const agent = new DisputeAgent({ llm });
const result = await agent.run({
claimId: 'CLM-1402',
reason: 'Customer reports missing parcel and delivery discrepancy'
});
console.log(result);Build
npx --yes [email protected] --dir packages/dispute build