@amigo-ai/platform-sdk 0.68.0 → 0.70.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.cjs +13 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +2 -2
- package/dist/resources/conversations.js +12 -1
- package/dist/resources/conversations.js.map +1 -1
- package/dist/types/generated/api.d.ts +793 -31
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/resources/conversations.d.ts +11 -1
- package/dist/types/resources/conversations.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts +15 -0
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/pipeline.d.ts +0 -1
- package/dist/types/resources/pipeline.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +2 -0
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2272,11 +2272,22 @@ var ConversationsResource = class extends WorkspaceScopedResource {
|
|
|
2272
2272
|
})
|
|
2273
2273
|
);
|
|
2274
2274
|
}
|
|
2275
|
-
|
|
2275
|
+
/**
|
|
2276
|
+
* Fetch a conversation's detail, including its turns.
|
|
2277
|
+
*
|
|
2278
|
+
* Pass `options.includeToolCalls: true` to include per-turn `tool_calls`
|
|
2279
|
+
* metadata on the returned turns. Server-side default is `false` — without
|
|
2280
|
+
* this opt-in the `tool_calls` arrays will be empty even when the agent
|
|
2281
|
+
* invoked tools, matching the `createTurn` opt-in.
|
|
2282
|
+
*/
|
|
2283
|
+
async get(conversationId, options) {
|
|
2276
2284
|
return extractData(
|
|
2277
2285
|
await this.client.GET("/v1/{workspace_id}/conversations/{conversation_id}", {
|
|
2278
2286
|
params: {
|
|
2279
|
-
path: { workspace_id: this.workspaceId, conversation_id: conversationId }
|
|
2287
|
+
path: { workspace_id: this.workspaceId, conversation_id: conversationId },
|
|
2288
|
+
...options?.includeToolCalls !== void 0 && {
|
|
2289
|
+
query: { include_tool_calls: options.includeToolCalls }
|
|
2290
|
+
}
|
|
2280
2291
|
}
|
|
2281
2292
|
})
|
|
2282
2293
|
);
|