Skip to content

Commit 1f48f88

Browse files
committed
improvement(models): remove the retired Gemini Deep Research path
1 parent 8d8606e commit 1f48f88

30 files changed

Lines changed: 65 additions & 766 deletions

‎apps/docs/content/docs/agents/skills.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Selected skills appear as cards that you can open or remove. Editing depends on
1919

2020
At runtime, the Agent's system prompt includes an `<available_skills>` section with the selected names and descriptions. Sim adds a `load_skill` tool with a `skill_name` input. When the model calls it, the full instructions return as a tool response. Selecting a skill makes it available; the model decides whether to load it.
2121

22-
This uses standard tool calling across compatible models. Deep-research and evaluation models do not expose the ordinary Agent Tools and Skills controls.
22+
This uses standard tool calling across compatible models. Evaluation models do not expose the ordinary Agent Tools and Skills controls.
2323

2424
## Use a skill in Chat
2525

‎apps/sim/app/(landing)/models/comparisons.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ const CAPABILITY_CHECKS: ReadonlyArray<{
231231
supports: (model) => Boolean(model.capabilities.nativeStructuredOutputs),
232232
},
233233
{ label: 'computer use', supports: (model) => Boolean(model.capabilities.computerUse) },
234-
{ label: 'deep research', supports: (model) => Boolean(model.capabilities.deepResearch) },
235234
]
236235

237236
function buildCostSentence({ a, b }: ModelComparison): string {

‎apps/sim/app/(landing)/models/utils.ts‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ export function formatCapabilityBoolean(
235235
return value ? positive : negative
236236
}
237237

238+
/** Evaluation models answer native questions and reject a response format. */
238239
function supportsCatalogStructuredOutputs(capabilities: ModelCapabilities): boolean {
239-
return !capabilities.deepResearch
240+
return !capabilities.evaluation
240241
}
241242

242243
export function getEffectiveMaxOutputTokens(capabilities: ModelCapabilities): number | null {
@@ -404,10 +405,6 @@ function buildCapabilityTags(capabilities: ModelCapabilities): string[] {
404405
tags.push('Computer use')
405406
}
406407

407-
if (capabilities.deepResearch) {
408-
tags.push('Deep research')
409-
}
410-
411408
if (capabilities.reasoningEffort) {
412409
tags.push(`Reasoning ${capabilities.reasoningEffort.values.join(', ')}`)
413410
}
@@ -438,10 +435,6 @@ function buildBestForLine(model: {
438435
}): string | null {
439436
const { pricing, capabilities, contextWindow } = model
440437

441-
if (capabilities.deepResearch) {
442-
return 'Best for multi-step research workflows and agent-led web investigation.'
443-
}
444-
445438
if (capabilities.reasoningEffort || capabilities.thinking) {
446439
return 'Best for reasoning-heavy tasks that need more deliberate model control.'
447440
}
@@ -484,7 +477,6 @@ function computeModelRelevanceScore(model: CatalogModel): number {
484477
return (
485478
(model.capabilities.reasoningEffort ? 10 : 0) +
486479
(model.capabilities.thinking ? 10 : 0) +
487-
(model.capabilities.deepResearch ? 8 : 0) +
488480
(model.capabilities.nativeStructuredOutputs ? 4 : 0) +
489481
(model.contextWindow ?? 0) / 100000
490482
)
@@ -868,10 +860,6 @@ export function buildModelCapabilityFacts(model: CatalogModel): CapabilityFact[]
868860
label: 'Computer use',
869861
value: formatCapabilityBoolean(capabilities.computerUse),
870862
},
871-
{
872-
label: 'Deep research',
873-
value: formatCapabilityBoolean(capabilities.deepResearch),
874-
},
875863
{
876864
label: 'Memory support',
877865
value: capabilities.memory === false ? 'Disabled' : 'Supported',

‎apps/sim/blocks/blocks/agent.ts‎

Lines changed: 13 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
getBaseModelProviders,
1717
getEvaluationModels,
1818
getMaxTemperature,
19-
getModelsWithDeepResearch,
2019
getModelsWithoutMemory,
2120
getModelsWithPromptCaching,
2221
getModelsWithReasoningEffort,
@@ -38,10 +37,8 @@ const MODELS_WITH_REASONING_EFFORT = getModelsWithReasoningEffort()
3837
const MODELS_WITH_VERBOSITY = getModelsWithVerbosity()
3938
const MODELS_WITH_THINKING = getModelsWithThinking()
4039
const MODELS_WITH_PROMPT_CACHING = getModelsWithPromptCaching()
41-
const MODELS_WITH_DEEP_RESEARCH = getModelsWithDeepResearch()
4240
const MODELS_WITHOUT_MEMORY = getModelsWithoutMemory()
4341
const EVALUATION_MODELS = getEvaluationModels()
44-
const MODELS_WITHOUT_CHAT_CONTROLS = [...MODELS_WITH_DEEP_RESEARCH, ...EVALUATION_MODELS]
4542

4643
// Helper function to get the tool ID from a block type
4744
const getToolIdFromBlock = (blockType: string): string | undefined => {
@@ -272,7 +269,7 @@ Return ONLY the JSON array.`,
272269
defaultValue: [],
273270
condition: {
274271
field: 'model',
275-
value: MODELS_WITHOUT_CHAT_CONTROLS,
272+
value: EVALUATION_MODELS,
276273
not: true,
277274
},
278275
},
@@ -283,7 +280,7 @@ Return ONLY the JSON array.`,
283280
defaultValue: [],
284281
condition: {
285282
field: 'model',
286-
value: MODELS_WITHOUT_CHAT_CONTROLS,
283+
value: EVALUATION_MODELS,
287284
not: true,
288285
},
289286
},
@@ -355,16 +352,9 @@ Return ONLY the JSON array.`,
355352
mode: 'advanced',
356353
condition: () => ({
357354
field: 'model',
358-
value: (() => {
359-
const deepResearch = new Set(MODELS_WITH_DEEP_RESEARCH.map((m) => m.toLowerCase()))
360-
const allModels = Object.keys(getBaseModelProviders())
361-
return allModels.filter(
362-
(model) =>
363-
supportsTemperature(model) &&
364-
getMaxTemperature(model) === 1 &&
365-
!deepResearch.has(model.toLowerCase())
366-
)
367-
})(),
355+
value: Object.keys(getBaseModelProviders()).filter(
356+
(model) => supportsTemperature(model) && getMaxTemperature(model) === 1
357+
),
368358
}),
369359
},
370360
{
@@ -377,16 +367,9 @@ Return ONLY the JSON array.`,
377367
mode: 'advanced',
378368
condition: () => ({
379369
field: 'model',
380-
value: (() => {
381-
const deepResearch = new Set(MODELS_WITH_DEEP_RESEARCH.map((m) => m.toLowerCase()))
382-
const allModels = Object.keys(getBaseModelProviders())
383-
return allModels.filter(
384-
(model) =>
385-
supportsTemperature(model) &&
386-
getMaxTemperature(model) === 1.5 &&
387-
!deepResearch.has(model.toLowerCase())
388-
)
389-
})(),
370+
value: Object.keys(getBaseModelProviders()).filter(
371+
(model) => supportsTemperature(model) && getMaxTemperature(model) === 1.5
372+
),
390373
}),
391374
},
392375
{
@@ -399,16 +382,9 @@ Return ONLY the JSON array.`,
399382
mode: 'advanced',
400383
condition: () => ({
401384
field: 'model',
402-
value: (() => {
403-
const deepResearch = new Set(MODELS_WITH_DEEP_RESEARCH.map((m) => m.toLowerCase()))
404-
const allModels = Object.keys(getBaseModelProviders())
405-
return allModels.filter(
406-
(model) =>
407-
supportsTemperature(model) &&
408-
getMaxTemperature(model) === 2 &&
409-
!deepResearch.has(model.toLowerCase())
410-
)
411-
})(),
385+
value: Object.keys(getBaseModelProviders()).filter(
386+
(model) => supportsTemperature(model) && getMaxTemperature(model) === 2
387+
),
412388
}),
413389
},
414390
{
@@ -419,7 +395,7 @@ Return ONLY the JSON array.`,
419395
mode: 'advanced',
420396
condition: {
421397
field: 'model',
422-
value: MODELS_WITHOUT_CHAT_CONTROLS,
398+
value: EVALUATION_MODELS,
423399
not: true,
424400
},
425401
},
@@ -431,21 +407,11 @@ Return ONLY the JSON array.`,
431407
language: 'json',
432408
condition: {
433409
field: 'model',
434-
value: MODELS_WITHOUT_CHAT_CONTROLS,
410+
value: EVALUATION_MODELS,
435411
not: true,
436412
},
437413
wandConfig: RESPONSE_FORMAT_WAND_CONFIG,
438414
},
439-
{
440-
id: 'previousInteractionId',
441-
title: 'Previous Interaction ID',
442-
type: 'short-input',
443-
placeholder: 'e.g., {{agent_1.interactionId}}',
444-
condition: {
445-
field: 'model',
446-
value: MODELS_WITH_DEEP_RESEARCH,
447-
},
448-
},
449415
{
450416
...getModelFallbackSubBlock(),
451417
condition: { field: 'model', value: EVALUATION_MODELS, not: true },
@@ -640,13 +606,5 @@ Return ONLY the JSON array.`,
640606
description: 'Provider timing information',
641607
},
642608
cost: { type: 'json', description: 'Cost of the API call' },
643-
interactionId: {
644-
type: 'string',
645-
description: 'Interaction ID for multi-turn deep research follow-ups',
646-
condition: {
647-
field: 'model',
648-
value: MODELS_WITH_DEEP_RESEARCH,
649-
},
650-
},
651609
},
652610
}

‎apps/sim/executor/handlers/agent/handler.test.ts‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ const mockResolveBedrockCredentialSession =
7070
llmBedrockCredentialMockFns.mockResolveBedrockCredentialSession
7171
mockImportWorkspaceFileSecretProvenanceForModelView.mockResolvedValue(true)
7272
providersUtilsMockFns.mockGetProviderFromModel.mockReturnValue('mock-provider')
73-
providersUtilsMockFns.mockIsDeepResearchModel.mockImplementation((model: string) =>
74-
model.includes('deep-research')
75-
)
7673
providersUtilsMockFns.mockGetApiKey.mockReturnValue('mock-api-key')
7774

7875
process.env.NEXT_PUBLIC_APP_URL = 'http://localhost:3000'
@@ -1043,23 +1040,6 @@ describe('AgentBlockHandler', () => {
10431040
)
10441041
})
10451042

1046-
it('never falls back on a deep-research follow-up turn', async () => {
1047-
mockExecuteProviderRequest.mockRejectedValueOnce(new Error('overloaded'))
1048-
1049-
await expect(
1050-
handler.execute(mockContext, mockBlock, {
1051-
...baseInputs,
1052-
previousInteractionId: 'interaction-1',
1053-
fallbackModels: [{ model: 'claude-sonnet-5' }],
1054-
})
1055-
).rejects.toThrow('overloaded')
1056-
expect(mockExecuteProviderRequest).toHaveBeenCalledTimes(1)
1057-
expect(mockAgentLogger.info).toHaveBeenCalledWith(
1058-
'Fallback models skipped for a deep-research follow-up turn',
1059-
expect.objectContaining({ blockId: mockBlock.id })
1060-
)
1061-
})
1062-
10631043
it('gives a fallback its own key, the block key on the same provider, and nothing otherwise', async () => {
10641044
mockExecuteProviderRequest
10651045
.mockRejectedValueOnce(new Error('one'))

‎apps/sim/executor/handlers/agent/handler.ts‎

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ import {
136136
registerProviderToolModelInputRegistry,
137137
} from '@/providers/tool-input-provenance'
138138
import type { ProviderToolConfig } from '@/providers/types'
139-
import { getProviderFromModel, isDeepResearchModel, transformBlockTool } from '@/providers/utils'
139+
import { getProviderFromModel, transformBlockTool } from '@/providers/utils'
140140
import type { SerializedBlock } from '@/serializer/types'
141141
import { buildJsonSchemaParamShapes, decodeToolParams } from '@/tools/param-shape'
142142
import { filterSchemaForLLM, type ToolSchema, ToolSchemaEnrichmentError } from '@/tools/params'
@@ -168,7 +168,6 @@ const AGENT_RAW_PROVIDER_ERROR_INPUT_PATHS: readonly ResolvedSecretInputPath[] =
168168
['verbosity'],
169169
['thinkingLevel'],
170170
['promptCaching'],
171-
['previousInteractionId'],
172171
['fallbackModels'],
173172
]
174173

@@ -518,9 +517,7 @@ export class AgentBlockHandler implements BlockHandler {
518517
filteredInputs.memoryType !== 'none' &&
519518
filteredInputs.conversationId &&
520519
nodeMetadata &&
521-
nodeMetadata.executionOrder !== undefined &&
522-
!modelInputs.previousInteractionId &&
523-
!isDeepResearchModel(model)
520+
nodeMetadata.executionOrder !== undefined
524521
? await openAgentTurnSession({
525522
ctx,
526523
blockId: block.id,
@@ -578,10 +575,6 @@ export class AgentBlockHandler implements BlockHandler {
578575
* Retry on fail retries the selected model; the fallbacks join only on the
579576
* try after which the executor promises no other. Until then a failure of
580577
* the primary is left to escape, so the executor's policy can replay it.
581-
*
582-
* A follow-up turn of a deep-research interaction lives on the primary's
583-
* provider; another model has none of that conversation, so a green answer
584-
* from it would be built on a fresh context. Such a request never falls back.
585578
*/
586579
const configuredFallbacks = getModelFallbacks(
587580
ctx,
@@ -594,11 +587,7 @@ export class AgentBlockHandler implements BlockHandler {
594587
}
595588
const retry = nodeMetadata?.retry
596589
const fallbacksHeld = areFallbacksHeld(retry)
597-
if (configuredFallbacks.length > 0 && modelInputs.previousInteractionId) {
598-
logger.info('Fallback models skipped for a deep-research follow-up turn', {
599-
blockId: block.id,
600-
})
601-
} else if (configuredFallbacks.length > 0 && fallbacksHeld) {
590+
if (configuredFallbacks.length > 0 && fallbacksHeld) {
602591
logger.info('Fallback models held for the final try', {
603592
blockId: block.id,
604593
attempt: retry?.attempt,
@@ -611,10 +600,9 @@ export class AgentBlockHandler implements BlockHandler {
611600
resultRegistry: servedRegistry,
612601
} = await this.executeAcrossModels(ctx, block, {
613602
primary: { model, ...(autoRouting ? { traceName: SIM_AUTO_MODEL_ID } : {}) },
614-
fallbacks: modelInputs.previousInteractionId ? [] : configuredFallbacks,
603+
fallbacks: configuredFallbacks,
615604
retry,
616-
retryPrimaryOnStreamStart:
617-
fallbacksHeld && configuredFallbacks.length > 0 && !modelInputs.previousInteractionId,
605+
retryPrimaryOnStreamStart: fallbacksHeld && configuredFallbacks.length > 0,
618606
configuredModel: autoRouting ? SIM_AUTO_MODEL_ID : model,
619607
primaryProviderId: providerId,
620608
messages: messagesWithInputFiles,
@@ -2651,8 +2639,6 @@ export class AgentBlockHandler implements BlockHandler {
26512639
blockId: block.id,
26522640
logger,
26532641
}),
2654-
/** A previous interaction id belongs to the primary's provider alone. */
2655-
previousInteractionId: undefined,
26562642
...(config.fallbackSystemPrompt !== undefined
26572643
? { systemPrompt: config.fallbackSystemPrompt }
26582644
: {}),
@@ -2867,7 +2853,6 @@ export class AgentBlockHandler implements BlockHandler {
28672853
verbosity: inputs.verbosity,
28682854
thinkingLevel: inputs.thinkingLevel,
28692855
promptCaching: inputs.promptCaching === true,
2870-
previousInteractionId: inputs.previousInteractionId,
28712856
/** Agent-events remains the opt-in for exposing thinking and tool lifecycle events. */
28722857
agentEvents: streaming && ctx.metadata?.agentEvents === true,
28732858
}
@@ -2958,7 +2943,6 @@ export class AgentBlockHandler implements BlockHandler {
29582943
promptCaching: providerRequest.promptCaching,
29592944
// Stable per-block identity; providers use it to route cache lookups.
29602945
blockId: block.id,
2961-
previousInteractionId: providerRequest.previousInteractionId,
29622946
agentEvents: providerRequest.agentEvents,
29632947
abortSignal: ctx.abortSignal,
29642948
},
@@ -3215,7 +3199,6 @@ export class AgentBlockHandler implements BlockHandler {
32153199
content: result.content,
32163200
...(result.answers && { answers: result.answers }),
32173201
...this.createResponseMetadata(result),
3218-
...(result.interactionId && { interactionId: result.interactionId }),
32193202
}
32203203
}
32213204

‎apps/sim/executor/handlers/agent/types.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export interface AgentInputs {
3232
conversationId?: string // Required for all non-none memory types
3333
slidingWindowSize?: string // For message-based sliding window
3434
slidingWindowTokens?: string // For token-based sliding window
35-
// Deep research multi-turn
36-
previousInteractionId?: string // Interactions API previous interaction reference
3735
// LLM parameters
3836
temperature?: string | number
3937
maxTokens?: string | number

‎apps/sim/lib/workflows/editing/builders.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const agentBlockConfig = {
4646
name: 'Agent',
4747
outputs: {
4848
content: { type: 'string', description: 'Default content output' },
49-
interactionId: {
50-
type: 'string',
51-
condition: { field: 'model', value: ['deep-research-pro-preview-12-2025'] },
49+
answers: {
50+
type: 'json',
51+
condition: { field: 'model', value: ['jev-latest'] },
5252
},
5353
},
5454
subBlocks: [
@@ -249,16 +249,16 @@ describe('createBlockFromParams', () => {
249249

250250
it('exposes the output ports of the seeded Agent default', () => {
251251
const block = createBlockFromParams(
252-
'agent-research-default',
252+
'agent-evaluation-default',
253253
{ type: 'agent', name: 'Agent' },
254254
undefined,
255255
undefined,
256256
{
257257
...DEFAULT_PERMISSION_GROUP_CONFIG,
258-
defaultAgentModel: 'deep-research-pro-preview-12-2025',
258+
defaultAgentModel: 'jev-latest',
259259
}
260260
)
261-
expect(block.outputs.interactionId).toEqual({ type: 'string' })
261+
expect(block.outputs.answers).toEqual({ type: 'json' })
262262
})
263263
it('uses the group Agent default when creating an Agent without an explicit model', () => {
264264
const config = { ...DEFAULT_PERMISSION_GROUP_CONFIG, defaultAgentModel: 'gpt-4o' }

‎apps/sim/lib/workflows/migrations/subblock-migrations.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ export const SUBBLOCK_ID_MIGRATIONS: Record<string, readonly SubblockIdMigration
135135
slack_v2: [{ from: 'channelMaxPages', to: '_removed_channelMaxPages' }],
136136
/** Google Ads moved API access to the OAuth client's Cloud project and retired developer tokens. */
137137
google_ads: [{ from: 'developerToken', to: '_removed_developerToken' }],
138+
/** Google shut down the Deep Research agent, the only model that read a previous interaction. */
139+
agent: [{ from: 'previousInteractionId', to: '_removed_previousInteractionId' }],
138140
/** Help Scout triggers now register their own webhook and generate its signing secret. */
139141
helpscout: [{ from: 'webhookSecret', to: '_removed_webhookSecret' }],
140142
instagram: [{ from: 'metrics', to: 'insightMetrics' }],

0 commit comments

Comments
 (0)