@hivegpt/hiveai-angular 0.0.561 → 0.0.563

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.
@@ -2060,8 +2060,10 @@ class ChatDrawerComponent {
2060
2060
  const userTimezone = this.timezone && String(this.timezone).trim()
2061
2061
  ? String(this.timezone).trim()
2062
2062
  : undefined;
2063
- return sessions.map((s) => {
2063
+ return sessions.map((raw) => {
2064
2064
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2065
+ // get_my_agenda returns wrapper { id, schedule, isSession }; normalize to inner schedule object
2066
+ const s = raw && raw.schedule ? raw.schedule : raw;
2065
2067
  // Support both dateTimeRange (string) and actualDateTimeRange (object with start/end)
2066
2068
  const whenRaw = (_b = (_a = s.dateTimeRange) !== null && _a !== void 0 ? _a : s.actualDateTimeRange) !== null && _b !== void 0 ? _b : '';
2067
2069
  const whenFormatted = this.formatSessionWhen(whenRaw, userTimezone);
@@ -2717,7 +2719,8 @@ class ChatDrawerComponent {
2717
2719
  (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_sessions_by_interest' ||
2718
2720
  (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_sessions_by_track' ||
2719
2721
  (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_speaker_sessions' ||
2720
- (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_upcoming_sessions';
2722
+ (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_upcoming_sessions' ||
2723
+ (serializable === null || serializable === void 0 ? void 0 : serializable.tool_name) === 'get_my_agenda';
2721
2724
  if (isSessionTool) {
2722
2725
  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;
2723
2726
  const answerText = otherFields.answer != null
@@ -3273,7 +3276,8 @@ class ChatDrawerComponent {
3273
3276
  toolName === 'get_sessions_by_interest' ||
3274
3277
  toolName === 'get_sessions_by_track' ||
3275
3278
  toolName === 'get_speaker_sessions' ||
3276
- toolName === 'get_upcoming_sessions';
3279
+ toolName === 'get_upcoming_sessions' ||
3280
+ toolName === 'get_my_agenda';
3277
3281
  if (isSessionTool &&
3278
3282
  ((_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)) {
3279
3283
  const contentStr = chat.toolresults.tool_result.messages[0].content;