File tree Expand file tree Collapse file tree 8 files changed +8
-145
lines changed
packages/agent-runtime/src/system-prompt Expand file tree Collapse file tree 8 files changed +8
-145
lines changed Original file line number Diff line number Diff line change 11import { checkLiveUserInput } from '@codebuff/agent-runtime/live-user-inputs'
22import { getMCPToolData } from '@codebuff/agent-runtime/mcp'
33import { getAgentStreamFromTemplate } from '@codebuff/agent-runtime/prompt-agent-stream'
4+ import { additionalSystemPrompts } from '@codebuff/agent-runtime/system-prompt/prompts'
45import { getAgentTemplate } from '@codebuff/agent-runtime/templates/agent-registry'
56import {
67 asSystemInstruction ,
@@ -20,7 +21,6 @@ import { getErrorObject } from '@codebuff/common/util/error'
2021import { cloneDeep } from 'lodash'
2122
2223import { runProgrammaticStep } from './run-programmatic-step'
23- import { additionalSystemPrompts } from './system-prompt/prompts'
2424import { getAgentPrompt } from './templates/strings'
2525import { processStreamWithTools } from './tools/stream-parser'
2626import { getAgentOutput } from './util/agent-output'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import {
2+ getGitChangesPrompt ,
3+ getProjectFileTreePrompt ,
4+ getSystemInfoPrompt ,
5+ } from '@codebuff/agent-runtime/system-prompt/prompts'
16import { getAgentTemplate } from '@codebuff/agent-runtime/templates/agent-registry'
27import {
38 PLACEHOLDER ,
@@ -10,11 +15,6 @@ import { schemaToJsonStr } from '@codebuff/common/util/zod-schema'
1015import { z } from 'zod/v4'
1116
1217import { buildSpawnableAgentsDescription } from './prompts'
13- import {
14- getGitChangesPrompt ,
15- getProjectFileTreePrompt ,
16- getSystemInfoPrompt ,
17- } from '../system-prompt/prompts'
1818import {
1919 fullToolList ,
2020 getShortToolInstructions ,
Original file line number Diff line number Diff line change 1+ import { gitCommitGuidePrompt } from '@codebuff/agent-runtime/system-prompt/prompts'
12import { getToolCallString } from '@codebuff/common/tools/utils'
23
3- import { gitCommitGuidePrompt } from '../../../system-prompt/prompts'
4-
54import type { ToolDescription } from '../tool-def-type'
65
76const toolName = 'run_terminal_command'
Original file line number Diff line number Diff line change @@ -3,15 +3,14 @@ import {
33 requestRelevantFilesForTraining ,
44} from '@codebuff/agent-runtime/find-files/request-files-prompt'
55import { getFileReadingUpdates } from '@codebuff/agent-runtime/get-file-reading-updates'
6+ import { getSearchSystemPrompt } from '@codebuff/agent-runtime/system-prompt/search-system-prompt'
67import { renderReadFilesResult } from '@codebuff/agent-runtime/util/render-read-files-result'
78import {
89 countTokens ,
910 countTokensJson ,
1011} from '@codebuff/agent-runtime/util/token-counter'
1112import { insertTrace } from '@codebuff/bigquery'
1213
13- import { getSearchSystemPrompt } from '../../../system-prompt/search-system-prompt'
14-
1514import type { CodebuffToolHandlerFunction } from '@codebuff/agent-runtime/tools/handlers/handler-function-type'
1615import type { GetExpandedFileContextForTrainingBlobTrace } from '@codebuff/bigquery'
1716import type {
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments