Skip to content

Commit 6cd2210

Browse files
committed
feat(copilot): register blank platform subagent
1 parent e4e2abc commit 6cd2210

5 files changed

Lines changed: 39 additions & 0 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/message-content/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const TOOL_ICONS: Record<string, IconComponent> = {
6464
research: Search,
6565
scout: Search,
6666
search: Search,
67+
platform: Library,
6768
context_compaction: Asterisk,
6869
open_resource: Eye,
6970
file: File,

apps/sim/app/workspace/[workspaceId]/home/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export const SUBAGENT_LABELS: Record<string, string> = {
189189
custom_tool: 'Custom Tool Agent',
190190
scout: 'Scout Agent',
191191
search: 'Search Agent',
192+
platform: 'Platform Agent',
192193
superagent: 'Superagent',
193194
run: 'Run Agent',
194195
agent: 'Tools Agent',

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface ToolCatalogEntry {
8585
| 'oauth_get_auth_link'
8686
| 'oauth_request_access'
8787
| 'open_resource'
88+
| 'platform'
8889
| 'promote_to_live'
8990
| 'query_logs'
9091
| 'query_user_table'
@@ -200,6 +201,7 @@ export interface ToolCatalogEntry {
200201
| 'oauth_get_auth_link'
201202
| 'oauth_request_access'
202203
| 'open_resource'
204+
| 'platform'
203205
| 'promote_to_live'
204206
| 'query_logs'
205207
| 'query_user_table'
@@ -247,6 +249,7 @@ export interface ToolCatalogEntry {
247249
| 'file'
248250
| 'knowledge'
249251
| 'media'
252+
| 'platform'
250253
| 'run'
251254
| 'search'
252255
| 'table'
@@ -3837,6 +3840,25 @@ export const OpenResource: ToolCatalogEntry = {
38373840
},
38383841
}
38393842

3843+
export const Platform: ToolCatalogEntry = {
3844+
id: 'platform',
3845+
name: 'platform',
3846+
route: 'subagent',
3847+
mode: 'async',
3848+
parameters: {
3849+
properties: {
3850+
task: {
3851+
description: 'A task for the Platform agent.',
3852+
type: 'string',
3853+
},
3854+
},
3855+
required: ['task'],
3856+
type: 'object',
3857+
},
3858+
subagentId: 'platform',
3859+
internal: true,
3860+
}
3861+
38403862
export const PromoteToLive: ToolCatalogEntry = {
38413863
id: 'promote_to_live',
38423864
name: 'promote_to_live',
@@ -5949,6 +5971,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
59495971
[OauthGetAuthLink.id]: OauthGetAuthLink,
59505972
[OauthRequestAccess.id]: OauthRequestAccess,
59515973
[OpenResource.id]: OpenResource,
5974+
[Platform.id]: Platform,
59525975
[PromoteToLive.id]: PromoteToLive,
59535976
[QueryLogs.id]: QueryLogs,
59545977
[QueryUserTable.id]: QueryUserTable,

apps/sim/lib/copilot/generated/tool-schemas-v1.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,6 +3708,19 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
37083708
},
37093709
resultSchema: undefined,
37103710
},
3711+
platform: {
3712+
parameters: {
3713+
properties: {
3714+
task: {
3715+
description: 'A task for the Platform agent.',
3716+
type: 'string',
3717+
},
3718+
},
3719+
required: ['task'],
3720+
type: 'object',
3721+
},
3722+
resultSchema: undefined,
3723+
},
37113724
promote_to_live: {
37123725
parameters: {
37133726
type: 'object',

apps/sim/lib/copilot/tools/tool-display.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ const TOOL_TITLES: Record<string, string> = {
531531
research: 'Research Agent',
532532
scout: 'Scout Agent',
533533
search: 'Search Agent',
534+
platform: 'Platform Agent',
534535
file: 'File Agent',
535536
media: 'Media Agent',
536537
browser: 'Browser Agent',

0 commit comments

Comments
 (0)