Skip to content

Commit 52f86da

Browse files
committed
fix(tools): update operation model input test
1 parent 7cc41cc commit 52f86da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/sim/tools/direct-execution-model-input.test.ts renamed to apps/sim/tools/operation-model-input.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ import { managedAgentRespondCustomToolTool } from '@/tools/managed_agent/respond
88
import { managedAgentRespondToolConfirmationTool } from '@/tools/managed_agent/respond_tool_confirmation'
99
import { managedAgentRunSessionTool } from '@/tools/managed_agent/run_session'
1010
import { managedAgentSendMessageTool } from '@/tools/managed_agent/send_message'
11-
import type { ToolConfig } from '@/tools/types'
11+
import type { InternalToolConfig } from '@/tools/types'
1212

1313
function 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, {

0 commit comments

Comments
 (0)