Skip to content

Commit 0390232

Browse files
committed
feat(copilot): register blank platform subagent
1 parent dac3284 commit 0390232

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'
@@ -3825,6 +3828,25 @@ export const OpenResource: ToolCatalogEntry = {
38253828
},
38263829
}
38273830

3831+
export const Platform: ToolCatalogEntry = {
3832+
id: 'platform',
3833+
name: 'platform',
3834+
route: 'subagent',
3835+
mode: 'async',
3836+
parameters: {
3837+
properties: {
3838+
task: {
3839+
description: 'A task for the Platform agent.',
3840+
type: 'string',
3841+
},
3842+
},
3843+
required: ['task'],
3844+
type: 'object',
3845+
},
3846+
subagentId: 'platform',
3847+
internal: true,
3848+
}
3849+
38283850
export const PromoteToLive: ToolCatalogEntry = {
38293851
id: 'promote_to_live',
38303852
name: 'promote_to_live',
@@ -5937,6 +5959,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
59375959
[OauthGetAuthLink.id]: OauthGetAuthLink,
59385960
[OauthRequestAccess.id]: OauthRequestAccess,
59395961
[OpenResource.id]: OpenResource,
5962+
[Platform.id]: Platform,
59405963
[PromoteToLive.id]: PromoteToLive,
59415964
[QueryLogs.id]: QueryLogs,
59425965
[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
@@ -3696,6 +3696,19 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
36963696
},
36973697
resultSchema: undefined,
36983698
},
3699+
platform: {
3700+
parameters: {
3701+
properties: {
3702+
task: {
3703+
description: 'A task for the Platform agent.',
3704+
type: 'string',
3705+
},
3706+
},
3707+
required: ['task'],
3708+
type: 'object',
3709+
},
3710+
resultSchema: undefined,
3711+
},
36993712
promote_to_live: {
37003713
parameters: {
37013714
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)