@kittycad/lib 4.3.32 → 4.3.33

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.
@@ -7,9 +7,21 @@ interface MlCopilotWsParams {
7
7
  pr?: number;
8
8
  }
9
9
  /**
10
- * Open a websocket to prompt the ML copilot.
10
+ * Open a websocket to a Zookeeper agent instance.
11
11
  *
12
- * This endpoint accepts typed query parameters via `MlCopilotQuery`. See the field documentation on that struct for details, including replay behavior and wire format.
12
+ * Remember to authenticate before sending messages. [For WebSockets it's a little different.](/docs/developer-tools/api/authentication?lang=curl#websockets)
13
+ *
14
+ * As with all Zoo WebSockets, you must implement a ping-pong interval / heartbeat to keep the connection open. This involves a simple `{ type: "ping" }` every ~5s and **check that a `{ pong: {} } ` is received**.
15
+ *
16
+ * For the "standard experience" where the agent continues off conversations, you'll want to set the `replay` query string param to `true` and record "conversation ids", which are then passed as the other query string parameter.
17
+ *
18
+ * A list of past conversations can be fetch from [/ml/conversations](/docs/developer-tools/api/ml/list-conversations?lang=curl).
19
+ *
20
+ * The general use-case is to fire off `{ type: "user", content: "my prompt goes here" }` messages and interpret the various message types that return.
21
+ *
22
+ * Notable behavior: **ONLY KCL IS RETURNED.** It's a common misunderstanding that Zookeeper returns models in formats such as STEP and STL directly. This is incorrect. All outputs are in KCL, which can then be fed into the [Engine API](/docs/developer-tools/engine-api) (specifically the `exec_kcl_project` command) or the [Zoo CLI](/docs/developer-tools/cli/manual) (`zoo kcl snapshot ...`).
23
+ *
24
+ * In the future we may add a more direct method, but you can always rely on those.
13
25
  *
14
26
  * Tags: ml
15
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ml_copilot_ws.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/ml_copilot_ws.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAIpD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAA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U;IAIvD;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,YAAY,GAAG,sBAAsB;CAgC9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kittycad/lib",
3
- "version": "4.3.32",
3
+ "version": "4.3.33",
4
4
  "description": "Javascript library for KittyCAD API",
5
5
  "type": "module",
6
6
  "keywords": [