@copass/harness
TypeScript client SDK for the Copass knowledge graph platform.
Installation
npm install @copass/harness
Requires Node.js >= 18.0.0.
Usage
import { CopassClient } from '@copass/harness';
const client = new CopassClient({
auth: { type: 'api-key', key: 'olk_your_api_key' },
});
const result = await client.matrix.query({
query: 'How does authentication work?',
});
const job = await client.ingest.text({
text: 'const x = 1;',
source_type: 'code',
});
const status = await client.ingest.getJob(job.job_id);
Documentation
See the main documentation for architecture, API reference, and guides.
License
MIT