|
1 | | -import { insertTrace } from '@codebuff/bigquery' |
2 | 1 | import { AnalyticsEvent } from '@codebuff/common/constants/analytics-events' |
3 | 2 | import { supportsCacheControl } from '@codebuff/common/old-constants' |
4 | 3 | import { TOOLS_WHICH_WONT_FORCE_NEXT_STEP } from '@codebuff/common/tools/constants' |
@@ -26,7 +25,6 @@ import { |
26 | 25 | } from './util/messages' |
27 | 26 | import { countTokensJson } from './util/token-counter' |
28 | 27 |
|
29 | | -import type { AgentResponseTrace } from '@codebuff/bigquery' |
30 | 28 | import type { AgentTemplate } from '@codebuff/common/types/agent-template' |
31 | 29 | import type { TrackEventFn } from '@codebuff/common/types/contracts/analytics' |
32 | 30 | import type { |
@@ -352,22 +350,6 @@ export const runAgentStep = async ( |
352 | 350 |
|
353 | 351 | fullResponse = fullResponseAfterStream |
354 | 352 |
|
355 | | - const agentResponseTrace: AgentResponseTrace = { |
356 | | - type: 'agent-response', |
357 | | - created_at: new Date(), |
358 | | - agent_step_id: agentStepId, |
359 | | - user_id: userId ?? '', |
360 | | - id: crypto.randomUUID(), |
361 | | - payload: { |
362 | | - output: fullResponse, |
363 | | - user_input_id: userInputId, |
364 | | - client_session_id: clientSessionId, |
365 | | - fingerprint_id: fingerprintId, |
366 | | - }, |
367 | | - } |
368 | | - |
369 | | - insertTrace({ trace: agentResponseTrace, logger }) |
370 | | - |
371 | 353 | agentState.messageHistory = expireMessages( |
372 | 354 | agentState.messageHistory, |
373 | 355 | 'agentStep', |
|
0 commit comments