Skip to content

Commit 3026784

Browse files
committed
remove userInputId from state
1 parent 7095334 commit 3026784

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

packages/agent-runtime/src/tools/handlers/handler-function-type.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type PresentOrAbsent<K extends PropertyKey, V> =
2424
| { [P in K]: V }
2525
| { [P in K]: never }
2626
export type State = {
27-
userInputId: string
2827
creditsUsed?: number | Promise<number>
2928
fingerprintId: string
3029
userId: string | undefined

packages/agent-runtime/src/tools/handlers/tool/create-plan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const handleCreatePlan = ((params: {
1919
agentStepId: string
2020
clientSessionId: string
2121
logger: Logger
22+
userInputId: string
2223
requestClientToolCall: (
2324
toolCall: ClientToolCall<'create_plan'>,
2425
) => Promise<CodebuffToolOutput<'create_plan'>>
@@ -29,7 +30,6 @@ export const handleCreatePlan = ((params: {
2930
state: {
3031
fingerprintId: string
3132
userId: string | undefined
32-
userInputId: string
3333
repoId: string | undefined
3434
} & FileProcessingState
3535
}): {
@@ -43,6 +43,7 @@ export const handleCreatePlan = ((params: {
4343
previousToolCallFinished,
4444
state,
4545
toolCall,
46+
userInputId,
4647
getLatestState,
4748
requestClientToolCall,
4849
trackEvent,
@@ -52,7 +53,6 @@ export const handleCreatePlan = ((params: {
5253
const {
5354
fingerprintId,
5455
userId,
55-
userInputId,
5656
repoId,
5757
} = state
5858
const fileProcessingState = getFileProcessingValues(state)

packages/agent-runtime/src/tools/stream-parser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export async function processStreamWithTools(
7373
>,
7474
) {
7575
const {
76-
userInputId,
7776
fingerprintId,
7877
userId,
7978
ancestorRunIds,
@@ -107,7 +106,6 @@ export async function processStreamWithTools(
107106
const state: State = {
108107
fullResponse,
109108
prompt,
110-
userInputId,
111109
fingerprintId,
112110
userId,
113111
repoId,

0 commit comments

Comments
 (0)