mindgraph 0.4.0 → 0.4.1
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 +5 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,16 +52,16 @@ new MindGraph({ baseUrl: string, apiKey?: string, jwt?: string })
|
|
|
52
52
|
|--------|-------------|
|
|
53
53
|
| `capture(req)` | Capture a source, snippet, or observation |
|
|
54
54
|
| `entity(req)` | Create, alias, resolve, or merge entities |
|
|
55
|
-
| `findOrCreateEntity(label,
|
|
55
|
+
| `findOrCreateEntity(label, props?, agentId?)` | Convenience: create or find an entity by label (generic fallback) |
|
|
56
56
|
| `findOrCreatePerson(label, props?, agentId?)` | Find or create a Person entity |
|
|
57
57
|
| `findOrCreateOrganization(label, props?, agentId?)` | Find or create an Organization entity |
|
|
58
58
|
| `findOrCreateNation(label, props?, agentId?)` | Find or create a Nation entity |
|
|
59
59
|
| `findOrCreateEvent(label, props?, agentId?)` | Find or create an Event entity |
|
|
60
60
|
| `findOrCreatePlace(label, props?, agentId?)` | Find or create a Place entity |
|
|
61
61
|
| `findOrCreateConcept(label, props?, agentId?)` | Find or create a Concept entity |
|
|
62
|
-
| `addClaim(label,
|
|
63
|
-
| `addEvidence(label,
|
|
64
|
-
| `addObservation(label,
|
|
62
|
+
| `addClaim(label, content, confidence?, agentId?)` | Add a Claim node via the argument endpoint |
|
|
63
|
+
| `addEvidence(label, description, agentId?)` | Add an Evidence node attached to a claim |
|
|
64
|
+
| `addObservation(label, description, agentId?)` | Add an Observation node |
|
|
65
65
|
|
|
66
66
|
**Typed entity example:**
|
|
67
67
|
|
|
@@ -188,16 +188,7 @@ const job = await graph.getJob(job_id);
|
|
|
188
188
|
| `health()` | Health check |
|
|
189
189
|
| `stats()` | Graph-wide statistics |
|
|
190
190
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
| Method | Description |
|
|
194
|
-
|--------|-------------|
|
|
195
|
-
| `signup(email, password)` | Create a new account |
|
|
196
|
-
| `login(email, password)` | Login and receive JWT |
|
|
197
|
-
| `createApiKey(name?)` | Create an API key |
|
|
198
|
-
| `listApiKeys()` | List all API keys |
|
|
199
|
-
| `revokeApiKey(id)` | Revoke an API key |
|
|
200
|
-
| `getUsage()` | Get usage statistics |
|
|
191
|
+
> Account sign-up, login, and API key management live in the [MindGraph dashboard](https://mindgraph.cloud/dashboard) — not the SDK. Get your API key there, then pass it to the `MindGraph` constructor.
|
|
201
192
|
|
|
202
193
|
## Examples
|
|
203
194
|
|