@faiber/faiber-knowledge 0.11.7 → 0.12.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 +2 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,26 +27,15 @@ const result = await api.query("fitness-coach", {
|
|
|
27
27
|
query: "What workout is scheduled today?",
|
|
28
28
|
profile_id: userId,
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
const context = await api.assistantQuery(assistantId, {
|
|
32
|
-
user_id: userId,
|
|
33
|
-
conversation_id: conversationId,
|
|
34
|
-
query: "Explain the selected lesson",
|
|
35
|
-
drm_media_ids: [mediaId],
|
|
36
|
-
model_id: "provider/model",
|
|
37
|
-
profile: currentProfile,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// Send this cursor on the next turn to receive only relevant context deltas.
|
|
41
|
-
const cursor = context.data.data.trace.context_cursor;
|
|
42
30
|
```
|
|
43
31
|
|
|
44
32
|
## Complete capability
|
|
45
33
|
|
|
46
|
-
|
|
34
|
+
This package exposes 36 registered operations from the knowledge service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
|
|
47
35
|
|
|
48
36
|
| Area | Operations | HTTP methods |
|
|
49
37
|
|---|---:|---|
|
|
38
|
+
| `main` | 3 | `GET` |
|
|
50
39
|
| `routes` | 33 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
|
|
51
40
|
|
|
52
41
|
Management routes use optimistic version fields where supported. Runtime queries are scoped by chat slug and return matched knowledge, rules, notifications, warnings, tasks, input requests, directions, and trace data.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faiber/faiber-knowledge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@faiber/sdk-core": "0.
|
|
19
|
+
"@faiber/sdk-core": "0.12.1"
|
|
20
20
|
}
|
|
21
21
|
}
|