Skip to content

Commit

Permalink
fix: add telemetry for office agent for unit test - bug fix 7
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealHaojiangLiu committed Jul 1, 2024
1 parent 1b7b992 commit 59afe81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ describe("CodeExplainer", () => {
relatedSampleName: ["sample1", "sample2"],
timeToFirstToken: 0,
chatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message2"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage2"),
],
responseChatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "responseMessage1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "responseMessage2"),
],
responseChatMessages: [],
properties: { property1: "value1", property2: "value2" },
measurements: { measurement1: 1, measurement2: 2 },
},
Expand Down Expand Up @@ -106,10 +109,13 @@ describe("CodeExplainer", () => {
relatedSampleName: ["sample1", "sample2"],
timeToFirstToken: 0,
chatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message2"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage2"),
],
responseChatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "responseMessage1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "responseMessage2"),
],
responseChatMessages: [],
properties: {
property1: "value1",
property2: "value2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ describe("projectCreator", () => {
relatedSampleName: ["sample1", "sample2"],
timeToFirstToken: 0,
chatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "message2"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage1"),
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "requestMessage2"),
],
responseChatMessages: [
new LanguageModelChatMessage(LanguageModelChatMessageRole.User, "responseMessage1"),
Expand Down

0 comments on commit 59afe81

Please sign in to comment.