lenzyai
v0.0.12
Published
Lenzy AI SDK
Readme
Lenzy AI SDK
Official TypeScript/JavaScript SDK for Lenzy AI - Track and analyze your AI conversations.
Installation
npm install lenzyaiUsage
import { Lenzy } from 'lenzyai'
const client = new Lenzy({
apiKey: 'your-api-key', // or set LENZY_API_KEY env variable
})
// Record messages from a conversation
await client.recordMessages({
projectId: 'your-project-id',
externalConversationId: 'conversation-123',
externalUserId: 'user-456', // optional
messages: [
{
role: 'USER',
content: 'Hello, how are you?',
externalId: 'msg-1', // optional
sentAt: new Date('2025-11-27T10:30:00.000Z') // optional
},
{
role: 'ASSISTANT',
content: 'I am doing well, thank you!',
}
]
})License
MIT
