@empiricalrun/test-gen 0.53.10 → 0.53.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @empiricalrun/test-gen
2
2
 
3
+ ## 0.53.11
4
+
5
+ ### Patch Changes
6
+
7
+ - fb78386: feat: enabled LLM tracing for chatAgent dashboard
8
+ - Updated dependencies [a40b338]
9
+ - @empiricalrun/llm@0.14.6
10
+
3
11
  ## 0.53.10
4
12
 
5
13
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAoB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiBhE,wBAAsB,kBAAkB,CAAC,EACvC,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C,iBAoFA;AAqBD,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,aAAa,GACd,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,iBA+BA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAYA,OAAO,EAAoB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAiBhE,wBAAsB,kBAAkB,CAAC,EACvC,mBAAmB,EACnB,aAAa,EACb,oBAAoB,GACrB,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C,iBAoFA;AAuBD,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,aAAa,GACd,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;CACvB,iBAyCA"}
@@ -116,6 +116,15 @@ async function runChatAgentForDashboard({ chatSessionId, selectedModel, }) {
116
116
  const chatSession = await getChatSessionFromDashboard(chatSessionId);
117
117
  const chatState = chatSession.chat_state;
118
118
  const branchName = chatSession.branch_name;
119
+ const trace = llm_1.langfuseInstance?.trace({
120
+ id: chatSession.langfuse_trace_id,
121
+ name: "chat_agent",
122
+ input: chatState,
123
+ tags: [selectedModel, "chat_agent"],
124
+ metadata: {
125
+ chatSessionId,
126
+ },
127
+ });
119
128
  await (0, git_1.checkoutBranch)(branchName);
120
129
  let chatModel = (0, model_1.createChatModel)(chatState.messages, selectedModel);
121
130
  let reporterFunc = async (chatState, latest) => {
@@ -137,6 +146,7 @@ async function runChatAgentForDashboard({ chatSessionId, selectedModel, }) {
137
146
  chatModel,
138
147
  selectedModel,
139
148
  reporter: reporterFunc,
149
+ trace,
140
150
  });
141
151
  await (0, git_1.commitLocalAndPushBranchToRemote)(branchName);
142
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.53.10",
3
+ "version": "0.53.11",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -56,7 +56,7 @@
56
56
  "tsx": "^4.16.2",
57
57
  "typescript": "^5.3.3",
58
58
  "zod": "^3.23.8",
59
- "@empiricalrun/llm": "^0.14.5",
59
+ "@empiricalrun/llm": "^0.14.6",
60
60
  "@empiricalrun/r2-uploader": "^0.3.8",
61
61
  "@empiricalrun/test-run": "^0.7.7"
62
62
  },