File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
132131export 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' ,
You can’t perform that action at this time.
0 commit comments