@kortexya/reasoninglayer 1.0.0 → 1.1.0

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.
package/README.md CHANGED
@@ -29,8 +29,9 @@ yarn add @kortexya/reasoninglayer
29
29
  import { ReasoningLayerClient, Value, TermInput, FeatureInput } from '@kortexya/reasoninglayer';
30
30
 
31
31
  const client = new ReasoningLayerClient({
32
- baseUrl: 'http://localhost:8083',
32
+ baseUrl: 'https://platform.ovh.reasoninglayer.ai',
33
33
  tenantId: 'your-tenant-uuid',
34
+ auth: { mode: 'bearer', token: process.env.RL_API_TOKEN! },
34
35
  });
35
36
 
36
37
  // Create a sort hierarchy
@@ -113,9 +114,9 @@ console.log(result.solutions); // Solutions with bindings
113
114
 
114
115
  ```typescript
115
116
  const client = new ReasoningLayerClient({
116
- baseUrl: 'http://localhost:8083', // Required
117
- tenantId: 'your-tenant-uuid', // Required, sent as X-Tenant-Id
118
- auth: { mode: 'bearer', token: 'eyJ…' }, // Required — see Authentication below
117
+ baseUrl: 'https://platform.ovh.reasoninglayer.ai', // Required
118
+ tenantId: 'your-tenant-uuid', // Required, sent as X-Tenant-Id
119
+ auth: { mode: 'bearer', token: 'eyJ…' }, // Required — see Authentication below
119
120
  userId: 'user-uuid', // Optional, sent as X-User-Id
120
121
  namespaceId: 'ns-uuid', // Optional, sent as X-Namespace-Id
121
122
  maxRetries: 3, // Default: 3
@@ -138,7 +139,7 @@ request as `Authorization: Bearer <token>`.
138
139
 
139
140
  ```typescript
140
141
  const client = new ReasoningLayerClient({
141
- baseUrl: 'https://platform.example.com',
142
+ baseUrl: 'https://platform.ovh.reasoninglayer.ai',
142
143
  tenantId: '550e8400-e29b-41d4-a716-446655440000',
143
144
  auth: { mode: 'bearer', token: process.env.RL_API_TOKEN! },
144
145
  });
@@ -152,7 +153,7 @@ automatically (same-origin).
152
153
 
153
154
  ```typescript
154
155
  const client = new ReasoningLayerClient({
155
- baseUrl: 'https://platform.example.com',
156
+ baseUrl: 'https://platform.ovh.reasoninglayer.ai',
156
157
  tenantId: '550e8400-e29b-41d4-a716-446655440000',
157
158
  auth: { mode: 'cookie' },
158
159
  });