Skip to content

Commit 2fa54fa

Browse files
committed
move xml-stream-parser into agent-runtime/tool-stream-parser
1 parent b11110a commit 2fa54fa

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

backend/src/tools/stream-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { processStreamWithTags } from '@codebuff/agent-runtime/tool-stream-parser'
12
import { expireMessages } from '@codebuff/agent-runtime/util/messages'
23
import {
34
endToolTag,
@@ -10,7 +11,6 @@ import { generateCompactId } from '@codebuff/common/util/string'
1011
import { cloneDeep } from 'lodash'
1112

1213
import { executeBatchStrReplaces } from './batch-str-replace'
13-
import { processStreamWithTags } from '../xml-stream-parser'
1414
import { executeCustomToolCall, executeToolCall } from './tool-executor'
1515

1616
import type { BatchStrReplaceState } from './batch-str-replace'

backend/src/__tests__/xml-stream-parser.test.ts renamed to packages/agent-runtime/src/__tests__/tool-stream-parser.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { globalStopSequence } from '@codebuff/agent-runtime/constants'
21
import { endsAgentStepParam } from '@codebuff/common/tools/constants'
32
import { getToolCallString } from '@codebuff/common/tools/utils'
43
import { describe, expect, it } from 'bun:test'
54

6-
import { processStreamWithTags } from '../xml-stream-parser'
5+
import { globalStopSequence } from '@codebuff/agent-runtime/constants'
6+
7+
import { processStreamWithTags } from '../tool-stream-parser'
78

89
import type { Logger } from '@codebuff/common/types/contracts/logger'
910

File renamed without changes.

0 commit comments

Comments
 (0)