@zeniai/client-epic-state 5.0.93 → 5.0.94

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.
@@ -99,6 +99,7 @@ export interface AiCfoAnswerPayload {
99
99
  type: string;
100
100
  visualization: AiCfoVisualizationPayload | null;
101
101
  artifact?: string | null;
102
+ artifact_host_url?: string | null;
102
103
  artifact_title?: string | null;
103
104
  follow_up_questions?: string[];
104
105
  table?: AiCfoVisualizationPayload | null;
@@ -118,6 +118,7 @@ function chatHistoryToQA(history) {
118
118
  chainOfThoughtActionSteps: [],
119
119
  artifact: parsedAgentMessage.artifact ?? undefined,
120
120
  artifactTitle: parsedAgentMessage.artifact_title ?? undefined,
121
+ artifactHostUrl: parsedAgentMessage.artifact_host_url ?? undefined,
121
122
  },
122
123
  createdAt: (0, zeniDayJS_1.date)(agentMessage.created_at),
123
124
  };
@@ -350,7 +351,7 @@ const toAiCfoVisualizationData = (data) => {
350
351
  };
351
352
  };
352
353
  const toResponseBlockType = (answer, userId) => {
353
- const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, } = answer;
354
+ const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, artifact_host_url, } = answer;
354
355
  const { chat_session_id, message_id, timestamp, chain_of_thought_action_steps: chainOfThoughtActionSteps = [], } = metadata;
355
356
  return {
356
357
  messageId: message_id,
@@ -370,6 +371,7 @@ const toResponseBlockType = (answer, userId) => {
370
371
  chainOfThoughtActionSteps,
371
372
  artifact: artifact ?? undefined,
372
373
  artifactTitle: artifact_title ?? undefined,
374
+ artifactHostUrl: artifact_host_url ?? undefined,
373
375
  },
374
376
  createdAt: (0, zeniDayJS_1.date)(timestamp),
375
377
  };
@@ -161,6 +161,7 @@ export interface AnswerContentBlockBase {
161
161
  insights: string;
162
162
  text: string;
163
163
  artifact?: string;
164
+ artifactHostUrl?: string;
164
165
  artifactTitle?: string;
165
166
  summarizedTitle?: string;
166
167
  table?: AiCfoVisualization;
@@ -114,6 +114,7 @@ function chatHistoryToQA(history) {
114
114
  chainOfThoughtActionSteps: [],
115
115
  artifact: parsedAgentMessage.artifact ?? undefined,
116
116
  artifactTitle: parsedAgentMessage.artifact_title ?? undefined,
117
+ artifactHostUrl: parsedAgentMessage.artifact_host_url ?? undefined,
117
118
  },
118
119
  createdAt: zeniDate(agentMessage.created_at),
119
120
  };
@@ -345,7 +346,7 @@ const toAiCfoVisualizationData = (data) => {
345
346
  };
346
347
  };
347
348
  const toResponseBlockType = (answer, userId) => {
348
- const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, } = answer;
349
+ const { metadata, state, type, text, visualization, table, follow_up_questions, assumptions, insights, summarized_title, artifact, artifact_title, artifact_host_url, } = answer;
349
350
  const { chat_session_id, message_id, timestamp, chain_of_thought_action_steps: chainOfThoughtActionSteps = [], } = metadata;
350
351
  return {
351
352
  messageId: message_id,
@@ -365,6 +366,7 @@ const toResponseBlockType = (answer, userId) => {
365
366
  chainOfThoughtActionSteps,
366
367
  artifact: artifact ?? undefined,
367
368
  artifactTitle: artifact_title ?? undefined,
369
+ artifactHostUrl: artifact_host_url ?? undefined,
368
370
  },
369
371
  createdAt: zeniDate(timestamp),
370
372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.0.93",
3
+ "version": "5.0.94",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",