@amigo-ai/platform-sdk 0.96.0 → 0.97.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/api.md +2 -0
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +2 -2
- package/dist/resources/simulations.js +20 -0
- package/dist/resources/simulations.js.map +1 -1
- package/dist/types/resources/simulations.d.ts +14 -0
- package/dist/types/resources/simulations.d.ts.map +1 -1
- package/package.json +1 -1
package/api.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3267,6 +3267,30 @@ var SimulationsResource = class extends WorkspaceScopedResource {
|
|
|
3267
3267
|
})
|
|
3268
3268
|
);
|
|
3269
3269
|
}
|
|
3270
|
+
/**
|
|
3271
|
+
* Fork a session into N branches — clone the session at its current turn and
|
|
3272
|
+
* step each alternative caller utterance atomically. The session must belong
|
|
3273
|
+
* to a coverage run (branches attribute to the parent's `run_id`); forking a
|
|
3274
|
+
* run-less session is rejected server-side. `session_id` travels in the path,
|
|
3275
|
+
* so `body` carries only the alternatives.
|
|
3276
|
+
*/
|
|
3277
|
+
async forkSession(sessionId, body) {
|
|
3278
|
+
return extractData(
|
|
3279
|
+
await this.client.POST("/v1/{workspace_id}/simulations/sessions/{session_id}/fork", {
|
|
3280
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } },
|
|
3281
|
+
body
|
|
3282
|
+
})
|
|
3283
|
+
);
|
|
3284
|
+
}
|
|
3285
|
+
/** Assign a score (and optional rationale) to a completed simulation session. */
|
|
3286
|
+
async scoreSession(sessionId, body) {
|
|
3287
|
+
return extractData(
|
|
3288
|
+
await this.client.POST("/v1/{workspace_id}/simulations/sessions/{session_id}/score", {
|
|
3289
|
+
params: { path: { workspace_id: this.workspaceId, session_id: sessionId } },
|
|
3290
|
+
body
|
|
3291
|
+
})
|
|
3292
|
+
);
|
|
3293
|
+
}
|
|
3270
3294
|
/**
|
|
3271
3295
|
* Multi-session simulation runs — orchestrate a batch of scenarios against
|
|
3272
3296
|
* a service to compute coverage and surface regressions. Use this when you
|