@fluxbase/sdk 2026.1.14-rc.7 → 2026.1.14-rc.8

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
@@ -9744,6 +9744,17 @@ var FluxbaseAIChat = class {
9744
9744
  );
9745
9745
  }
9746
9746
  break;
9747
+ case "tool_result":
9748
+ if (message.query !== void 0 && message.data !== void 0 && message.conversation_id) {
9749
+ this.options.onQueryResult?.(
9750
+ message.query,
9751
+ message.summary || "",
9752
+ message.row_count || 0,
9753
+ message.data,
9754
+ message.conversation_id
9755
+ );
9756
+ }
9757
+ break;
9747
9758
  case "done":
9748
9759
  if (message.conversation_id) {
9749
9760
  this.options.onDone?.(message.usage, message.conversation_id);
@@ -11146,6 +11157,15 @@ var QueryBuilder = class {
11146
11157
  this.offsetValue = count;
11147
11158
  return this;
11148
11159
  }
11160
+ /**
11161
+ * Truncate text columns to specified length
11162
+ * Useful for browsing tables with large text fields
11163
+ * @example truncate(500) // Truncate text columns to 500 characters
11164
+ */
11165
+ truncate(length) {
11166
+ this.truncateValue = length;
11167
+ return this;
11168
+ }
11149
11169
  /**
11150
11170
  * Return a single row (adds limit(1))
11151
11171
  * Errors if no rows found
@@ -11713,6 +11733,9 @@ var QueryBuilder = class {
11713
11733
  if (this.countType) {
11714
11734
  params.append("count", this.countType);
11715
11735
  }
11736
+ if (this.truncateValue !== void 0) {
11737
+ params.append("truncate", String(this.truncateValue));
11738
+ }
11716
11739
  const queryString = params.toString();
11717
11740
  return queryString ? `?${queryString}` : "";
11718
11741
  }