Import tool setting
This commit is contained in:
@@ -42,6 +42,8 @@ const renderToolIcon = (icon: string) => {
|
||||
Images: <Images className={className} />,
|
||||
CloudSun: <CloudSun className={className} />,
|
||||
Calendar: <Calendar className={className} />,
|
||||
Phone: <Phone className={className} />,
|
||||
Volume2: <Volume2 className={className} />,
|
||||
TrendingUp: <TrendingUp className={className} />,
|
||||
Coins: <Coins className={className} />,
|
||||
Terminal: <Terminal className={className} />,
|
||||
@@ -1017,6 +1019,37 @@ const TOOL_PARAMETER_HINTS: Record<string, any> = {
|
||||
},
|
||||
required: ['query'],
|
||||
},
|
||||
current_time: {
|
||||
type: 'object',
|
||||
properties: {},
|
||||
required: [],
|
||||
},
|
||||
take_phone: {
|
||||
type: 'object',
|
||||
properties: {},
|
||||
required: [],
|
||||
},
|
||||
increase_volume: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
step: { type: 'integer', description: 'Volume step, default 1' },
|
||||
},
|
||||
required: [],
|
||||
},
|
||||
decrease_volume: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
step: { type: 'integer', description: 'Volume step, default 1' },
|
||||
},
|
||||
required: [],
|
||||
},
|
||||
code_interpreter: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
code: { type: 'string', description: 'Python code' },
|
||||
},
|
||||
required: ['code'],
|
||||
},
|
||||
};
|
||||
|
||||
const getDefaultToolParameters = (toolId: string) =>
|
||||
@@ -1158,10 +1191,7 @@ export const DebugDrawer: React.FC<{
|
||||
return ids.map((id) => {
|
||||
const item = byId.get(id);
|
||||
const toolId = item?.id || id;
|
||||
const isClientTool =
|
||||
toolId.startsWith('client_') ||
|
||||
toolId.startsWith('browser_') ||
|
||||
['camera', 'microphone', 'page_control', 'local_file'].includes(toolId);
|
||||
const isClientTool = (item?.category || 'query') === 'system';
|
||||
return {
|
||||
type: 'function',
|
||||
executor: isClientTool ? 'client' : 'server',
|
||||
|
||||
Reference in New Issue
Block a user