@toothfairyai/sdk 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -461,7 +461,7 @@ await client.documents.delete('doc-id');
461
461
  #### Search Documents
462
462
 
463
463
  ```typescript
464
- const results = await client.documents.search('dental procedures', {
464
+ const results = await client.documents.search('product documentation', {
465
465
  topK: 10,
466
466
  metadata: { category: 'procedures' }
467
467
  });
@@ -492,9 +492,9 @@ console.log(`Downloaded: ${result.filename}`);
492
492
  #### Create an Entity
493
493
 
494
494
  ```typescript
495
- const entity = await client.entities.create('user-123', 'Dental Cleaning', 'topic', {
496
- description: 'Professional teeth cleaning procedures',
497
- emoji: '🦷',
495
+ const entity = await client.entities.create('user-123', 'Product Launch', 'topic', {
496
+ description: 'New product launch announcements and updates',
497
+ emoji: '🚀',
498
498
  parentEntity: 'parent-topic-id',
499
499
  backgroundColor: '#FF5733'
500
500
  });
@@ -544,7 +544,7 @@ const nerEntities = await client.entities.getByType('ner');
544
544
  #### Search Entities
545
545
 
546
546
  ```typescript
547
- const results = await client.entities.search('cleaning', 'topic');
547
+ const results = await client.entities.search('product', 'topic');
548
548
  for (const entity of results) {
549
549
  console.log(`${entity.label}`);
550
550
  }
@@ -1352,7 +1352,7 @@ for (const log of logs.items) {
1352
1352
  ### Simple Streaming
1353
1353
 
1354
1354
  ```typescript
1355
- const session = await client.streaming.sendToAgent('Tell me about dental care', 'agent-id');
1355
+ const session = await client.streaming.sendToAgent('Tell me about your AI capabilities', 'agent-id');
1356
1356
 
1357
1357
  session.on('data', (data) => {
1358
1358
  console.log(data.text, end='', flush=true);
@@ -1630,23 +1630,23 @@ await client.documents.upload('policy1.pdf', policies.id);
1630
1630
 
1631
1631
  ```typescript
1632
1632
  // Create topics
1633
- const cleaningTopic = await client.entities.create(
1633
+ const productTopic = await client.entities.create(
1634
1634
  'user-123',
1635
- 'Dental Cleaning',
1635
+ 'Product Updates',
1636
1636
  'topic',
1637
1637
  {
1638
- description: 'Professional teeth cleaning procedures',
1639
- emoji: '🦷'
1638
+ description: 'Latest product updates and announcements',
1639
+ emoji: '🚀'
1640
1640
  }
1641
1641
  );
1642
1642
 
1643
1643
  // Associate documents with topics
1644
1644
  const doc = await client.documents.createFromPath(
1645
- 'cleaning_guide.pdf',
1645
+ 'product_guide.pdf',
1646
1646
  'user-123',
1647
1647
  {
1648
- title: 'Cleaning Guide',
1649
- topics: [cleaningTopic.id]
1648
+ title: 'Product Guide',
1649
+ topics: [productTopic.id]
1650
1650
  }
1651
1651
  );
1652
1652
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toothfairyai/sdk",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "JavaScript/TypeScript SDK for ToothFairyAI API integration",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",