@runtypelabs/sdk 9.14.0 → 9.16.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/dist/index.mjs CHANGED
@@ -5964,6 +5964,13 @@ var _AgentsEndpoint = class _AgentsEndpoint {
5964
5964
  async exportRuntime(id) {
5965
5965
  return this.client.get(`/agents/${id}/export-runtime`);
5966
5966
  }
5967
+ /**
5968
+ * Roll up the agent's most recent runs: per-version and per-tool counts,
5969
+ * average tokens and cost, and which attached tools were never called.
5970
+ */
5971
+ async runInsights(id, params) {
5972
+ return this.client.get(`/agents/${id}/run-insights`, params);
5973
+ }
5967
5974
  /**
5968
5975
  * Evaluate a model-proposed runtime tool against a configurable allowlist policy.
5969
5976
  * Useful for local `propose_runtime_tool` handlers before follow-up execution.
@@ -13875,7 +13882,7 @@ function transformQueryParams(params) {
13875
13882
 
13876
13883
  // src/version.ts
13877
13884
  var FALLBACK_VERSION = "0.0.0";
13878
- var SDK_VERSION = "9.14.0".length > 0 ? "9.14.0" : FALLBACK_VERSION;
13885
+ var SDK_VERSION = "9.16.0".length > 0 ? "9.16.0" : FALLBACK_VERSION;
13879
13886
  var RUNTYPE_CLIENT_KIND = "sdk";
13880
13887
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
13881
13888
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "9.14.0",
3
+ "version": "9.16.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {},
26
26
  "devDependencies": {
27
- "@runtypelabs/shared": "3.49.0",
27
+ "@runtypelabs/shared": "3.51.2",
28
28
  "openapi-typescript": "^7.13.0",
29
29
  "tsup": "^8.0.2",
30
30
  "typescript": "^6.0.3",