Skip to content

Commit 5ba0564

Browse files
authored
feat(agent-tars): add static webui config to core (#1266)
1 parent 70f67a6 commit 5ba0564

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

multimodal/agent-tars/cli/src/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,6 @@ const DEFAULT_OPTIONS: Partial<AgentCLIInitOptions> = {
3737
type: 'module',
3838
constructor: AgentTARS,
3939
},
40-
webui: {
41-
logo: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/zyha-aulnh/ljhwZthlaukjlkulzlp/appicon.png',
42-
title: 'Agent TARS',
43-
subtitle: 'Offering seamless integration with a wide range of real-world tools.',
44-
welcomTitle: 'An multimodal AI agent',
45-
welcomePrompts: [
46-
'Search for the latest GUI Agent papers',
47-
'Find information about UI TARS',
48-
'Tell me the top 5 most popular projects on ProductHunt today',
49-
'Please book me the earliest flight from Hangzhou to Shenzhen on 10.1',
50-
],
51-
enableContextualSelector: true,
52-
},
5340
server: {
5441
storage: {
5542
type: 'sqlite',

multimodal/agent-tars/core/src/agent-tars.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,31 @@ import * as filesystemModule from '@agent-infra/mcp-server-filesystem';
3939
import * as commandsModule from '@agent-infra/mcp-server-commands';
4040

4141
import { WorkspacePathResolver } from './shared/workspace-path-resolver';
42+
import { AgentWebUIImplementation } from '@agent-tars/interface';
4243

4344
/**
4445
* A Agent TARS that uses in-memory MCP tool call
4546
* for built-in MCP Servers.
4647
*/
4748
export class AgentTARS<T extends AgentTARSOptions = AgentTARSOptions> extends MCPAgent<T> {
4849
static label = '@agent-tars/core';
50+
51+
/**
52+
* Default Web UI configuration for Agent TARS
53+
*/
54+
static webui: AgentWebUIImplementation = {
55+
logo: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/zyha-aulnh/ljhwZthlaukjlkulzlp/appicon.png',
56+
title: 'Agent TARS',
57+
subtitle: 'Offering seamless integration with a wide range of real-world tools.',
58+
welcomTitle: 'An multimodal AI agent',
59+
welcomePrompts: [
60+
'Search for the latest GUI Agent papers',
61+
'Find information about UI TARS',
62+
'Tell me the top 5 most popular projects on ProductHunt today',
63+
'Please book me the earliest flight from Hangzhou to Shenzhen on 10.1',
64+
],
65+
enableContextualSelector: true,
66+
};
4967
private workspace: string;
5068
// FIXME: remove it since options is strict type already
5169
private tarsOptions: AgentTARSOptions;

0 commit comments

Comments
 (0)