Skip to content

Commit ea24604

Browse files
committed
feat(copilot): register blank platform subagent
1 parent eb2867f commit ea24604

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'
@@ -205,6 +206,7 @@ export interface ToolCatalogEntry {
205206
| 'oauth_get_auth_link'
206207
| 'oauth_request_access'
207208
| 'open_resource'
209+
| 'platform'
208210
| 'promote_to_live'
209211
| 'query_logs'
210212
| 'query_user_table'
@@ -257,6 +259,7 @@ export interface ToolCatalogEntry {
257259
| 'file'
258260
| 'knowledge'
259261
| 'media'
262+
| 'platform'
260263
| 'run'
261264
| 'search'
262265
| 'table'
@@ -3867,6 +3870,25 @@ export const OpenResource: ToolCatalogEntry = {
38673870
},
38683871
}
38693872

3873+
export const Platform: ToolCatalogEntry = {
3874+
id: 'platform',
3875+
name: 'platform',
3876+
route: 'subagent',
3877+
mode: 'async',
3878+
parameters: {
3879+
properties: {
3880+
task: {
3881+
description: 'A task for the Platform agent.',
3882+
type: 'string',
3883+
},
3884+
},
3885+
required: ['task'],
3886+
type: 'object',
3887+
},
3888+
subagentId: 'platform',
3889+
internal: true,
3890+
}
3891+
38703892
export const PromoteToLive: ToolCatalogEntry = {
38713893
id: 'promote_to_live',
38723894
name: 'promote_to_live',
@@ -6574,6 +6596,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
65746596
[OauthGetAuthLink.id]: OauthGetAuthLink,
65756597
[OauthRequestAccess.id]: OauthRequestAccess,
65766598
[OpenResource.id]: OpenResource,
6599+
[Platform.id]: Platform,
65776600
[PromoteToLive.id]: PromoteToLive,
65786601
[QueryLogs.id]: QueryLogs,
65796602
[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
@@ -3728,6 +3728,19 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
37283728
},
37293729
resultSchema: undefined,
37303730
},
3731+
platform: {
3732+
parameters: {
3733+
properties: {
3734+
task: {
3735+
description: 'A task for the Platform agent.',
3736+
type: 'string',
3737+
},
3738+
},
3739+
required: ['task'],
3740+
type: 'object',
3741+
},
3742+
resultSchema: undefined,
3743+
},
37313744
promote_to_live: {
37323745
parameters: {
37333746
type: 'object',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ const TOOL_TITLES: Record<string, string> = {
536536
research: 'Research Agent',
537537
scout: 'Scout Agent',
538538
search: 'Search Agent',
539+
platform: 'Platform Agent',
539540
file: 'File Agent',
540541
media: 'Media Agent',
541542
browser: 'Browser Agent',

0 commit comments

Comments
 (0)