@hivegpt/hiveai-angular 0.0.451 → 0.0.453

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.
@@ -1827,9 +1827,11 @@ class ChatDrawerComponent {
1827
1827
  else if ((_k = res === null || res === void 0 ? void 0 : res.m) === null || _k === void 0 ? void 0 : _k.OtherFields) {
1828
1828
  const otherFields = res.m.OtherFields;
1829
1829
  const serializable = otherFields.serializable_to_return;
1830
- // Session cards: get_event_sessions (JSON) or get_event_sessions_v2 (JSON or plain text)
1830
+ // Session cards: event sessions tools (JSON or plain text)
1831
1831
  const isSessionTool = (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_event_sessions' ||
1832
- (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_event_sessions_v2';
1832
+ (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_event_sessions_v2' ||
1833
+ (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_sessions_by_interest' ||
1834
+ (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_sessions_by_track';
1833
1835
  if (isSessionTool) {
1834
1836
  const contentStr = (_o = (_m = (_l = serializable === null || serializable === void 0 ? void 0 : serializable.tool_result) === null || _l === void 0 ? void 0 : _l.messages) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.content;
1835
1837
  const answerText = otherFields.answer != null ? String(otherFields.answer).trim() : '';
@@ -2188,9 +2190,12 @@ class ChatDrawerComponent {
2188
2190
  });
2189
2191
  }
2190
2192
  if (chat.Type == 'ai') {
2191
- // If this AI message came from get_event_sessions / get_event_sessions_v2, show session cards instead of plain text
2193
+ // If this AI message came from session tools, show session cards instead of plain text
2192
2194
  const toolName = (_a = chat.toolresults) === null || _a === void 0 ? void 0 : _a.tool_name;
2193
- const isSessionTool = toolName === 'get_event_sessions' || toolName === 'get_event_sessions_v2';
2195
+ const isSessionTool = toolName === 'get_event_sessions' ||
2196
+ toolName === 'get_event_sessions_v2' ||
2197
+ toolName === 'get_sessions_by_interest' ||
2198
+ toolName === 'get_sessions_by_track';
2194
2199
  if (isSessionTool && ((_e = (_d = (_c = (_b = chat.toolresults) === null || _b === void 0 ? void 0 : _b.tool_result) === null || _c === void 0 ? void 0 : _c.messages) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.content)) {
2195
2200
  const contentStr = chat.toolresults.tool_result.messages[0].content;
2196
2201
  let sessions = [];