Skip to content

Commit deb1470

Browse files
committed
revert validateInputSchema
1 parent 45c36b7 commit deb1470

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

backend/src/run-programmatic-step.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ export async function runProgrammaticStep(
232232
state,
233233
userId,
234234
autoInsertEndStepParam: true,
235-
validateInputSchema: false,
236235
})
237236

238237
// TODO: Remove messages from state and always use agentState.messageHistory.

backend/src/tools/tool-executor.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export interface ExecuteToolCallParams<T extends string = ToolName> {
126126
state: Record<string, any>
127127
userId: string | undefined
128128
autoInsertEndStepParam?: boolean
129-
validateInputSchema?: boolean
130129
}
131130

132131
export function executeToolCall<T extends ToolName>({
@@ -146,16 +145,15 @@ export function executeToolCall<T extends ToolName>({
146145
state,
147146
userId,
148147
autoInsertEndStepParam = false,
149-
validateInputSchema = true
150148
}: ExecuteToolCallParams<T>): Promise<void> {
151-
const toolCall: CodebuffToolCall<T> | ToolCallError = validateInputSchema ? parseRawToolCall<T>(
149+
const toolCall: CodebuffToolCall<T> | ToolCallError = parseRawToolCall<T>(
152150
{
153151
toolName,
154152
toolCallId: generateCompactId(),
155153
input,
156154
},
157155
autoInsertEndStepParam,
158-
) : {toolName, toolCallId: generateCompactId(), input} as CodebuffToolCall<T>
156+
)
159157
if ('error' in toolCall) {
160158
toolResults.push({
161159
type: 'tool-result',

0 commit comments

Comments
 (0)