vantageai
v0.2.0
Published
Vantage TypeScript SDK — vendor-neutral AI agent audit platform
Readme
@vantage/sdk
Vendor-neutral AI agent audit SDK. Drop it in next to any LLM framework and every call gets logged to the Vantage platform automatically.
Install
pnpm add @vantage/sdkQuick start
OpenAI
import OpenAI from 'openai';
import { VantageClient, wrapOpenAI } from '@vantage/sdk';
const vantage = new VantageClient({ apiKey: 'vt-...', agentId: 'my-agent' });
const openai = wrapOpenAI(new OpenAI(), vantage);
const res = await openai.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: 'Hello' }] });
console.log(res.choices[0].message.content);LangChain
import { VantageClient, VantageCallbackHandler } from '@vantage/sdk';
const vantage = new VantageClient({ apiKey: 'vt-...', agentId: 'my-agent' });
const callbacks = [new VantageCallbackHandler(vantage)];
await chain.invoke({ input: 'Hello' }, { callbacks });