Skip to content

Commit

Permalink
fix: update snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jan 22, 2024
1 parent 76b7ae1 commit 3589418
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ describe('AgentFrameworkStorageService', () => {
"createdTimeMs": 0,
"interactions": Array [
Object {
"conversation_id": "",
"input": "input",
"interaction_id": "",
"response": "response",
},
],
Expand Down Expand Up @@ -273,7 +275,7 @@ describe('AgentFrameworkStorageService', () => {
Object {
"createTime": "create_time",
"input": "input",
"interactionId": "interaction_id",
"interactionId": undefined,
"origin": "origin",
"output": "response",
"traceNumber": 1,
Expand Down Expand Up @@ -351,7 +353,9 @@ describe('AgentFrameworkStorageService', () => {
expect(agentFrameworkService.getInteraction('_id', 'interaction_id')).resolves
.toMatchInlineSnapshot(`
Object {
"conversation_id": "",
"input": "input",
"interaction_id": "",
"response": "response",
}
`);
Expand Down
4 changes: 2 additions & 2 deletions server/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const formatInteractionFromBackend = (
const { message_id: messageId, memory_id: memoryId, ...others } = interaction || {};
return {
...others,
interaction_id: messageId,
conversation_id: memoryId,
interaction_id: messageId || '',
conversation_id: memoryId || '',
};
};

0 comments on commit 3589418

Please sign in to comment.