@amigo-ai/platform-sdk 0.68.0 → 0.69.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 CHANGED
@@ -2272,11 +2272,22 @@ var ConversationsResource = class extends WorkspaceScopedResource {
2272
2272
  })
2273
2273
  );
2274
2274
  }
2275
- async get(conversationId) {
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
  );