Skip to content

Commit a36f390

Browse files
committed
remove title
1 parent 2affc59 commit a36f390

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

apps/sim/lib/copilot/orchestrator/tool-executor/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ function validateOpenResourceParams(
135135
params: {
136136
type: params.type,
137137
id: params.id,
138-
...(params.title ? { title: params.title } : {}),
139138
},
140139
}
141140
}
@@ -1039,7 +1038,6 @@ const SIM_WORKFLOW_TOOL_HANDLERS: Record<
10391038
const params = validated.params
10401039
const resourceType = params.type
10411040
const resourceId = params.id
1042-
const resourceTitle = params.title || resourceType
10431041

10441042
return {
10451043
success: true,
@@ -1048,7 +1046,7 @@ const SIM_WORKFLOW_TOOL_HANDLERS: Record<
10481046
{
10491047
type: resourceType as 'workflow' | 'table' | 'knowledgebase' | 'file',
10501048
id: resourceId,
1051-
title: resourceTitle,
1049+
title: resourceType,
10521050
},
10531051
],
10541052
}

apps/sim/lib/copilot/orchestrator/tool-executor/param-types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,9 @@ export type OpenResourceType = 'workflow' | 'table' | 'knowledgebase' | 'file'
208208
export interface OpenResourceParams {
209209
type?: OpenResourceType
210210
id?: string
211-
title?: string
212211
}
213212

214213
export interface ValidOpenResourceParams {
215214
type: OpenResourceType
216215
id: string
217-
title?: string
218216
}

0 commit comments

Comments
 (0)