File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ import { managedAgentRespondCustomToolTool } from '@/tools/managed_agent/respond
88import { managedAgentRespondToolConfirmationTool } from '@/tools/managed_agent/respond_tool_confirmation'
99import { managedAgentRunSessionTool } from '@/tools/managed_agent/run_session'
1010import { managedAgentSendMessageTool } from '@/tools/managed_agent/send_message'
11- import type { ToolConfig } from '@/tools/types'
11+ import type { InternalToolConfig } from '@/tools/types'
1212
1313function selectModelInput (
14- tool : ToolConfig ,
14+ tool : InternalToolConfig ,
1515 params : Record < string , unknown >
1616) : Record < string , unknown > {
17- const modelInput = tool . request . modelInput
17+ const modelInput = tool . operation . modelInput
1818 expect ( modelInput ?. mode ) . toBe ( 'project' )
1919 if ( modelInput ?. mode !== 'project' ) throw new Error ( `Expected ${ tool . id } to project model input` )
2020 return modelInput . select ( params )
2121}
2222
23- describe ( 'direct-execution model-input selectors' , ( ) => {
23+ describe ( 'operation model-input selectors' , ( ) => {
2424 it ( 'selects only Browser Use fields that are supplied to its agent model' , ( ) => {
2525 expect (
2626 selectModelInput ( runTaskTool , {
You can’t perform that action at this time.
0 commit comments