@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.mjs CHANGED
@@ -2159,11 +2159,22 @@ var ConversationsResource = class extends WorkspaceScopedResource {
2159
2159
  })
2160
2160
  );
2161
2161
  }
2162
- async get(conversationId) {
2162
+ /**
2163
+ * Fetch a conversation's detail, including its turns.
2164
+ *
2165
+ * Pass `options.includeToolCalls: true` to include per-turn `tool_calls`
2166
+ * metadata on the returned turns. Server-side default is `false` — without
2167
+ * this opt-in the `tool_calls` arrays will be empty even when the agent
2168
+ * invoked tools, matching the `createTurn` opt-in.
2169
+ */
2170
+ async get(conversationId, options) {
2163
2171
  return extractData(
2164
2172
  await this.client.GET("/v1/{workspace_id}/conversations/{conversation_id}", {
2165
2173
  params: {
2166
- path: { workspace_id: this.workspaceId, conversation_id: conversationId }
2174
+ path: { workspace_id: this.workspaceId, conversation_id: conversationId },
2175
+ ...options?.includeToolCalls !== void 0 && {
2176
+ query: { include_tool_calls: options.includeToolCalls }
2177
+ }
2167
2178
  }
2168
2179
  })
2169
2180
  );