Skip to content

Commit 464ee9b

Browse files
authored
feat(omni-agent): add default runtimeSettings (#1657)
1 parent 4539b80 commit 464ee9b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

multimodal/omni-tars/omni-agent/tarko.config.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,42 @@ export default {
4747
dbName: process.env.MONGO_DB_NAME,
4848
},
4949
},
50+
runtimeSettings: {
51+
schema: {
52+
type: 'object',
53+
properties: {
54+
agentMode: {
55+
type: 'string',
56+
title: 'Agent Mode',
57+
enum: ['omni', 'gui', 'game'],
58+
enumLabels: ['Omni', 'GUI', 'Game'],
59+
default: 'omni',
60+
placement: 'chat-bottom',
61+
},
62+
browserMode: {
63+
type: 'string',
64+
title: 'Browser Control',
65+
enum: ['hybrid'],
66+
enumLabels: ['混合模式'],
67+
default: 'hybrid',
68+
placement: 'chat-bottom',
69+
visible: {
70+
dependsOn: 'agentMode',
71+
when: 'gui',
72+
},
73+
},
74+
},
75+
},
76+
transform: (runtimeSettings: Record<string, unknown>) => {
77+
return {
78+
agentMode: {
79+
id: runtimeSettings.agentMode,
80+
browserMode: runtimeSettings.browserMode,
81+
link: 'http://example.com',
82+
},
83+
};
84+
},
85+
},
5086
},
5187
logLevel: LogLevel.DEBUG,
5288
webui: {

0 commit comments

Comments
 (0)