A-CodeAI SDK - Korean Medicine Intelligence & Self-Evolving Memory API
npm install acodeaibash
npm install acodeai
`
$3
`javascript
// ES6 Modules
import { JemaClient, AthenaClient } from 'acodeai';
// or CommonJS
const { JemaClient, AthenaClient } = require('acodeai');
// Initialize clients
const jema = new JemaClient({ apiKey: 'your_api_key' });
const athena = new AthenaClient({ apiKey: 'your_api_key' });
// Analyze constitution (one line!)
const result = await jema.analyzeConstitution({
surveyAnswers: [{ question: '체질', answer: '활발함' }]
});
console.log(Your constitution: ${result.constitution});
// Store memory (one line!)
const memory = await athena.storeMemory({
content: 'User prefers Python over JavaScript',
category: 'preference'
});
console.log(Memory ID: ${memory.memory_id});
// Search memory (one line!)
const results = await athena.searchMemory({
query: 'What does the user prefer?',
limit: 5
});
console.log(Found ${results.results.length} memories);
``