Merge pull request #192 from shumaiOne/feat/disable-agent-tools

feat(agent): support disabling specific tools for agents
This commit is contained in:
Yiling-J
2026-07-16 16:38:32 +08:00
committed by GitHub
53 changed files with 1162 additions and 9 deletions
+1
View File
@@ -43,6 +43,7 @@
"using-shumai/agent-providers",
"using-shumai/agents",
"using-shumai/agent-skills",
"using-shumai/agent-tools",
"using-shumai/agent-sandbox"
]
},
+61
View File
@@ -0,0 +1,61 @@
---
title: Agent Tools
description: Configure the tools and capabilities permitted for each agent.
---
Shumai agents are equipped with built-in tools that allow them to interact with the file system, view files, extract video frames, and execute commands.
By default, **all tools are enabled** for new agents. Team Owners can deny specific tools to restrict agent capabilities.
<Warning>
**Caution:** Disabling tools can cause agents or skills to fail. For example, disabling the **Sandboxed Terminal** tool will break almost all custom skills that rely on executing commands or script environments. Disable tools only when you have a specific security policy or isolation requirement.
</Warning>
---
## Available Tools
The following tools can be individually toggled in the agent configuration dialog:
### 1. Sandboxed Terminal (`bash`)
- **Description:** Allows the agent to run terminal/shell commands in a highly isolated environment.
- **Why it matters:** Essential for running custom scripts, processing files on disk, or using standard Unix utilities. If disabled, the agent won't be able to run command-line code.
### 2. Read Skills (`read_skill`)
- **Description:** Allows the agent to load and read skill definitions to perform specialized actions.
- **Why it matters:** Enables the agent to inspect the instructions/configurations of custom skills registered in your workspace before executing them.
### 3. Analyze Image (`analyze_image`)
- **Description:** Allows the agent to view and analyze the visual contents of an image file.
- **Why it matters:** Enables multimodal agents to "see" image assets uploaded to Shumai, allowing them to answer comments or write metadata about images.
### 4. Video Frame Extraction (`screenshot`)
- **Description:** Allows the agent to extract still image frames from video files for analysis.
- **Why it matters:** Enables the agent to perform frame-by-frame analysis on videos (e.g. for comments, annotation, or search).
### 5. Browse Shumai (`list_assets`)
- **Description:** Allows the agent to list folders and browse files in Shumai.
- **Why it matters:** Gives the agent visual mapping of the project structure so it can search for other files or locate related assets.
### 6. Create Folder (`create_folder`)
- **Description:** Allows the agent to create new folders in Shumai.
- **Why it matters:** Needed if the agent organizes outputs or places files in custom subdirectory folders.
### 7. Create File (`create_file`)
- **Description:** Allows the agent to create and upload new files to Shumai.
- **Why it matters:** Allows the agent to generate new assets (e.g. text logs, transcoded clips, reports) and save them directly back into your project.
### 8. Create Version (`create_version`)
- **Description:** Allows the agent to upload and stack a new version of an existing file in Shumai.
- **Why it matters:** Allows the agent to update files in a clean, non-destructive way by stacking revisions rather than creating duplicate files.
---
## Restricting Tools
To change which tools an agent can use:
1. Navigate to **Team Settings** > **Agents** (Note: Only Team Owners can view and modify these settings).
2. Click on the agent you want to edit.
3. Scroll down below the **Skills** section to find the **Tools** configuration panel.
4. Toggle the switches next to the tools to enable or disable them.
5. Click **Save Changes**.
+43
View File
@@ -329,4 +329,47 @@ describe('Sandbox Network isolation integration', () => {
initializeSpy.mockRestore()
}
})
it('should filter out denied tools from AgentHarness', async () => {
const team = await prisma.team.create({
data: { name: 'Test Team 3' },
})
await prisma.user.create({
data: {
id: 'test-agent-3',
name: 'Agent 3',
email: 'agent3@shumai.ai',
type: 'agent',
},
})
await prisma.agent.create({
data: {
id: 'test-agent-3',
teamId: team.id,
type: 'chat',
config: { provider: 'google', model: 'gemini', deniedTools: ['bash'] },
},
})
const initializeSpy = vi.spyOn(SandboxManager, 'initialize').mockResolvedValue()
try {
const { harness } = await createAgentSession({
teamId: team.id,
agentId: 'test-agent-3',
providerName: 'google',
modelId: 'gemini',
systemPrompt: 'prompt',
teamSkills: [],
allowedDomains: [],
providers: [],
})
const tools = harness.getTools()
const bashTool = tools.find((t) => t.name === 'bash')
expect(bashTool).toBeUndefined()
const readSkillTool = tools.find((t) => t.name === 'read_skill')
expect(readSkillTool).toBeDefined()
} finally {
initializeSpy.mockRestore()
}
})
})
+10 -1
View File
@@ -262,6 +262,15 @@ export async function createAgentSession(params: CreateAgentSessionParams) {
)
}
const agent = await prisma.agent.findUnique({
where: { id: agentId },
})
const agentConfig = agent?.config as PrismaJson.AgentConfig | null | undefined
const deniedTools = agentConfig?.deniedTools || []
const allTools = [...mediaTools, readSkill, sandboxedBash, ...systemTools, ...customTools]
const enabledTools = allTools.filter((tool) => !deniedTools.includes(tool.name))
const harness = new AgentHarness({
env: new NodeExecutionEnv({ cwd: process.cwd() }),
session,
@@ -289,7 +298,7 @@ export async function createAgentSession(params: CreateAgentSessionParams) {
getApiKeyAndHeaders: async (targetModel) => {
return getApiKeyAndHeadersFromDb(params.providers, targetModel.provider)
},
tools: [...mediaTools, readSkill, sandboxedBash, ...systemTools, ...customTools],
tools: enabledTools,
})
return { session, harness }
+14 -2
View File
@@ -27,6 +27,7 @@ describe('Agent API', () => {
model: 'model1',
thinkingLevel: 'high',
systemPrompt: 'prompt',
deniedTools: ['bash'],
},
skills: [],
},
@@ -43,6 +44,7 @@ describe('Agent API', () => {
expect(data).toHaveLength(1)
expect(data[0].name).toBe('Bot 1')
expect(data[0].providerId).toBe('prov1')
expect(data[0].deniedTools).toEqual(['bash'])
})
})
@@ -55,7 +57,13 @@ describe('Agent API', () => {
providerId: 'prov1',
modelId: 'model1',
soul: 'New Soul',
config: { provider: 'prov1', model: 'model1', thinkingLevel: 'low', systemPrompt: 'p' },
config: {
provider: 'prov1',
model: 'model1',
thinkingLevel: 'low',
systemPrompt: 'p',
deniedTools: ['bash'],
},
skills: [],
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -73,6 +81,7 @@ describe('Agent API', () => {
systemPrompt: 'p',
soul: 'New Soul',
skills: ['skill1'],
deniedTools: ['bash'],
}),
})
@@ -80,6 +89,7 @@ describe('Agent API', () => {
const data = await res.json()
expect(data.name).toBe('New Agent')
expect(data.soul).toBe('New Soul')
expect(data.deniedTools).toEqual(['bash'])
})
it('validates request', async () => {
@@ -105,7 +115,7 @@ describe('Agent API', () => {
providerId: 'prov1',
modelId: 'model1',
soul: 'Updated Soul',
config: { provider: 'prov1', model: 'model1' },
config: { provider: 'prov1', model: 'model1', deniedTools: ['bash'] },
skills: [],
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -121,6 +131,7 @@ describe('Agent API', () => {
modelId: 'model1',
soul: 'Updated Soul',
skills: [],
deniedTools: ['bash'],
}),
})
@@ -128,6 +139,7 @@ describe('Agent API', () => {
const data = await res.json()
expect(data.name).toBe('Updated Agent')
expect(data.soul).toBe('Updated Soul')
expect(data.deniedTools).toEqual(['bash'])
})
})
+3
View File
@@ -47,6 +47,7 @@ const route = new Hono<{ Variables: { user: User } }>()
skillId: s.skillId,
skill: s.skill,
})),
deniedTools: config.deniedTools || [],
}
}),
)
@@ -89,6 +90,7 @@ const route = new Hono<{ Variables: { user: User } }>()
skillId: s.skillId,
skill: s.skill,
})),
deniedTools: config.deniedTools || [],
}
return c.json(info, 200)
@@ -127,6 +129,7 @@ const route = new Hono<{ Variables: { user: User } }>()
skillId: s.skillId,
skill: s.skill,
})),
deniedTools: config.deniedTools || [],
}
return c.json(info, 200)
+24
View File
@@ -126,6 +126,27 @@ describe('AgentService', () => {
expect(agent?.skills?.[0].skillId).toBe(skill.id)
})
test('Create Agent with Denied Tools', async () => {
const db = prisma
const svc = new AgentService()
const { team, provider, model } = await setupTestData(db)
const agent = await svc.createAgent({
teamId: team.id,
name: 'Denied Tools Agent',
type: 'chat',
enabled: true,
providerId: provider.id,
modelId: model.id,
thinkingLevel: 'medium',
deniedTools: ['bash', 'screenshot'],
})
expect(agent?.id).toBeDefined()
const config = agent?.config as unknown as PrismaJson.AgentConfig
expect(config.deniedTools).toEqual(['bash', 'screenshot'])
})
test('Create Agent validation fails if model mismatch', async () => {
const db = prisma
const svc = new AgentService()
@@ -186,8 +207,11 @@ describe('AgentService', () => {
thinkingLevel: 'high',
soul: 'New soul',
skills: [skill.id], // Re-enable one
deniedTools: ['list_assets'],
})
expect(reUpdated.skills?.length).toBe(1)
const config = reUpdated.config as unknown as PrismaJson.AgentConfig
expect(config.deniedTools).toEqual(['list_assets'])
})
test('Create Agent with presigned URL extracts S3 key', async () => {
+4
View File
@@ -114,6 +114,7 @@ export class AgentService {
systemPrompt,
soul,
skills,
deniedTools,
} = params
if (type === 'embedding' || type === 'autofill') {
@@ -152,6 +153,7 @@ export class AgentService {
model: modelId || '',
thinkingLevel,
systemPrompt,
deniedTools: deniedTools || [],
}
const user = await tx.user.create({
@@ -211,6 +213,7 @@ export class AgentService {
systemPrompt,
soul,
skills,
deniedTools,
} = params
const agent = await this.prismaClient.agent.findUnique({
@@ -251,6 +254,7 @@ export class AgentService {
model: modelId || '',
thinkingLevel,
systemPrompt,
deniedTools: deniedTools || [],
}
return this.prismaClient.$transaction(async (tx) => {
+1
View File
@@ -30,6 +30,7 @@ declare global {
thinkingLevel?: 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
systemPrompt?: string
appendSystemPrompt?: string[]
deniedTools?: string[]
}
// ----------------------------------------------------------------------
+2
View File
@@ -30,6 +30,7 @@ export const agentInfoSchema = z.object({
systemPrompt: z.string().optional(),
soul: z.string().optional(),
skills: z.array(agentSkillSchema).optional(),
deniedTools: z.array(z.string()).optional(),
})
export type AgentInfo = z.infer<typeof agentInfoSchema>
@@ -44,6 +45,7 @@ const baseAgentRequest = z.object({
systemPrompt: z.string().optional(),
soul: z.string().optional(),
skills: z.array(z.string()).optional(),
deniedTools: z.array(z.string()).optional(),
})
export const createAgentRequestSchema = baseAgentRequest.superRefine((data, ctx) => {
@@ -7,11 +7,11 @@ import { Badge } from '@/ui/components/ui/badge'
import { Button } from '@/ui/components/ui/button'
import { Checkbox } from '@/ui/components/ui/checkbox'
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from '@/ui/components/ui/dropdown-menu'
import { EditableText } from '@/ui/components/ui/editable-text'
import { ProgressCircle } from '@/ui/components/ui/progress-circle'
@@ -21,11 +21,12 @@ import {
import { Switch } from '@/ui/components/ui/switch'
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'
import { useForm, useStore } from '@tanstack/react-form'
import { Loader2, Puzzle } from 'lucide-react'
import { Loader2, Puzzle, Terminal } from 'lucide-react'
import { useEffect, useMemo } from 'react'
import { m } from '@/ui/paraglide/messages.js'
import { toast } from 'sonner'
import { AgentInfo, AgentType, ThinkingLevel, thinkingLevelSchema } from '@shumai/dtos'
import { usePermissions } from '@/ui/hooks/use-permissions'
import { Textarea } from '@/ui/components/ui/textarea'
import { ScrollArea } from '@/ui/components/ui/scroll-area'
import { z } from 'zod'
@@ -51,8 +52,52 @@ const agentFormSchema = z.object({
thinkingLevel: thinkingLevelSchema.optional(),
systemPrompt: z.string().optional(),
skills: z.array(z.string()).optional(),
deniedTools: z.array(z.string()).optional(),
})
const BUILTIN_TOOLS = [
{
id: 'bash',
name: () => m.agent_tool_bash_name(),
description: () => m.agent_tool_bash_desc(),
},
{
id: 'read_skill',
name: () => m.agent_tool_read_skill_name(),
description: () => m.agent_tool_read_skill_desc(),
},
{
id: 'analyze_image',
name: () => m.agent_tool_analyze_image_name(),
description: () => m.agent_tool_analyze_image_desc(),
},
{
id: 'screenshot',
name: () => m.agent_tool_screenshot_name(),
description: () => m.agent_tool_screenshot_desc(),
},
{
id: 'list_assets',
name: () => m.agent_tool_list_assets_name(),
description: () => m.agent_tool_list_assets_desc(),
},
{
id: 'create_folder',
name: () => m.agent_tool_create_folder_name(),
description: () => m.agent_tool_create_folder_desc(),
},
{
id: 'create_file',
name: () => m.agent_tool_create_file_name(),
description: () => m.agent_tool_create_file_desc(),
},
{
id: 'create_version',
name: () => m.agent_tool_create_version_name(),
description: () => m.agent_tool_create_version_desc(),
},
]
type AgentFormValues = z.infer<typeof agentFormSchema>
export function AgentFormDialog({
@@ -64,6 +109,7 @@ export function AgentFormDialog({
title,
}: AgentFormDialogProps) {
const queryClient = useQueryClient()
const { canAdmin } = usePermissions()
// Fetch Providers
const { data: providers } = useQuery({
@@ -125,6 +171,7 @@ export function AgentFormDialog({
thinkingLevel: initialValues?.thinkingLevel || 'off',
systemPrompt: initialValues?.systemPrompt || '',
skills: initialValues?.skills?.map((s) => s.skillId) || ([] as string[]),
deniedTools: initialValues?.deniedTools || ([] as string[]),
} as AgentFormValues,
validators: {
onChange: schema,
@@ -510,6 +557,67 @@ export function AgentFormDialog({
/>
</div>
</div>
<div className="space-y-4 border-t border-border pt-6">
<Label className="text-base font-bold flex items-center gap-2">
<Terminal className="w-5 h-5 text-primary" />
{m.agent_tools()}
</Label>
<p className="text-xs text-muted-foreground">{m.agent_tools_description()}</p>
<div className="space-y-2">
<form.Field
name="deniedTools"
children={(deniedToolsField) => {
const currentDenied = deniedToolsField.state.value || []
return (
<>
{BUILTIN_TOOLS.map((tool) => {
const isEnabled = !currentDenied.includes(tool.id)
return (
<div
key={tool.id}
className="flex items-center justify-between p-3 bg-muted/30 border border-border rounded-lg"
>
<div className="flex items-center gap-3">
<Terminal className="w-4 h-4 text-muted-foreground" />
<div className="flex flex-col">
<span className="text-sm font-medium">{tool.name()}</span>
<span className="text-[10px] text-muted-foreground line-clamp-1">
{tool.description()}
</span>
</div>
</div>
<div className="flex items-center gap-2">
<span className="text-xs text-muted-foreground">
{isEnabled ? m.enabled() : m.disabled()}
</span>
<Switch
checked={isEnabled}
disabled={!canAdmin}
onCheckedChange={(checked) => {
if (checked) {
deniedToolsField.handleChange(
currentDenied.filter((id) => id !== tool.id),
)
} else {
deniedToolsField.handleChange([
...currentDenied,
tool.id,
])
}
}}
/>
</div>
</div>
)
})}
</>
)
}}
/>
</div>
</div>
</>
)}
</div>
@@ -115,6 +115,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {
systemPrompt?: string
soul?: string
skills?: string[]
deniedTools?: string[]
}) => {
const res = await client.api.agents[':agentId'].$put({
param: { agentId: params.agentId },
@@ -129,6 +130,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {
systemPrompt: params.systemPrompt,
soul: params.soul,
skills: params.skills,
deniedTools: params.deniedTools,
},
})
if (!res.ok) throw new Error('failed to update agent')
@@ -323,6 +325,7 @@ export function AgentsSettings({ teamId }: AgentsSettingsProps) {
systemPrompt: agent.systemPrompt,
soul: agent.soul,
skills: agent.skills?.map((s) => s.skillId),
deniedTools: agent.deniedTools,
})
}}
/>
+18
View File
@@ -379,6 +379,24 @@
"thinking_level": "Thinking Level",
"agent_soul": "Agent Soul (Personality)",
"agent_soul_placeholder": "Describe the agent's personality, tone, and behavior...",
"agent_tools": "Tools",
"agent_tools_description": "Configure which tools the agent is permitted to use.",
"agent_tool_bash_name": "Sandboxed Terminal",
"agent_tool_bash_desc": "Allows the agent to run terminal/shell commands in a highly isolated environment.",
"agent_tool_read_skill_name": "Read Skills",
"agent_tool_read_skill_desc": "Allows the agent to load and read skill definitions to perform specialized actions.",
"agent_tool_analyze_image_name": "Analyze Image",
"agent_tool_analyze_image_desc": "Allows the agent to view and analyze the visual contents of an image file.",
"agent_tool_screenshot_name": "Video Frame Extraction",
"agent_tool_screenshot_desc": "Allows the agent to extract still image frames from video files for analysis.",
"agent_tool_list_assets_name": "Browse Shumai",
"agent_tool_list_assets_desc": "Allows the agent to list folders and browse files in Shumai.",
"agent_tool_create_folder_name": "Create Folder",
"agent_tool_create_folder_desc": "Allows the agent to create new folders in Shumai.",
"agent_tool_create_file_name": "Create File",
"agent_tool_create_file_desc": "Allows the agent to create and upload new files to Shumai.",
"agent_tool_create_version_name": "Create Version",
"agent_tool_create_version_desc": "Allows the agent to upload and stack a new version of an existing file in Shumai.",
"enabled": "Enabled",
"disabled": "Disabled",
"no_skills_available": "No skills available.",
+18
View File
@@ -379,6 +379,24 @@
"thinking_level": "思考级别",
"agent_soul": "智能体灵魂(个性)",
"agent_soul_placeholder": "描述智能体的个性、语调和行为...",
"agent_tools": "工具",
"agent_tools_description": "配置允许智能体使用的工具。",
"agent_tool_bash_name": "沙箱终端",
"agent_tool_bash_desc": "允许智能体在高度隔离的环境中运行终端/命令行命令。",
"agent_tool_read_skill_name": "读取技能",
"agent_tool_read_skill_desc": "允许智能体加载和读取技能定义以执行特定操作。",
"agent_tool_analyze_image_name": "分析图片",
"agent_tool_analyze_image_desc": "允许智能体查看和分析图片文件的视觉内容。",
"agent_tool_screenshot_name": "提取视频帧",
"agent_tool_screenshot_desc": "允许智能体从视频文件中提取静态画面进行分析。",
"agent_tool_list_assets_name": "浏览 Shumai",
"agent_tool_list_assets_desc": "允许智能体列出文件夹并浏览 Shumai 中的文件。",
"agent_tool_create_folder_name": "创建文件夹",
"agent_tool_create_folder_desc": "允许智能体在 Shumai 中创建新文件夹。",
"agent_tool_create_file_name": "创建文件",
"agent_tool_create_file_desc": "允许智能体创建新文件并上传到 Shumai。",
"agent_tool_create_version_name": "创建版本",
"agent_tool_create_version_desc": "允许智能体在 Shumai 中为已有文件上传并叠加新版本。",
"enabled": "已启用",
"disabled": "已禁用",
"no_skills_available": "暂无可用技能。",
+18
View File
@@ -361,6 +361,24 @@ export * from "./current_custom_avatar.js";
export * from "./thinking_level.js";
export * from "./agent_soul.js";
export * from "./agent_soul_placeholder.js";
export * from "./agent_tools.js";
export * from "./agent_tools_description.js";
export * from "./agent_tool_bash_name.js";
export * from "./agent_tool_bash_desc.js";
export * from "./agent_tool_read_skill_name.js";
export * from "./agent_tool_read_skill_desc.js";
export * from "./agent_tool_analyze_image_name.js";
export * from "./agent_tool_analyze_image_desc.js";
export * from "./agent_tool_screenshot_name.js";
export * from "./agent_tool_screenshot_desc.js";
export * from "./agent_tool_list_assets_name.js";
export * from "./agent_tool_list_assets_desc.js";
export * from "./agent_tool_create_folder_name.js";
export * from "./agent_tool_create_folder_desc.js";
export * from "./agent_tool_create_file_name.js";
export * from "./agent_tool_create_file_desc.js";
export * from "./agent_tool_create_version_name.js";
export * from "./agent_tool_create_version_desc.js";
export * from "./enabled.js";
export * from "./disabled.js";
export * from "./no_skills_available.js";
+18
View File
@@ -363,6 +363,24 @@ export * from './current_custom_avatar.js'
export * from './thinking_level.js'
export * from './agent_soul.js'
export * from './agent_soul_placeholder.js'
export * from './agent_tools.js'
export * from './agent_tools_description.js'
export * from './agent_tool_bash_name.js'
export * from './agent_tool_bash_desc.js'
export * from './agent_tool_read_skill_name.js'
export * from './agent_tool_read_skill_desc.js'
export * from './agent_tool_analyze_image_name.js'
export * from './agent_tool_analyze_image_desc.js'
export * from './agent_tool_screenshot_name.js'
export * from './agent_tool_screenshot_desc.js'
export * from './agent_tool_list_assets_name.js'
export * from './agent_tool_list_assets_desc.js'
export * from './agent_tool_create_folder_name.js'
export * from './agent_tool_create_folder_desc.js'
export * from './agent_tool_create_file_name.js'
export * from './agent_tool_create_file_desc.js'
export * from './agent_tool_create_version_name.js'
export * from './agent_tool_create_version_desc.js'
export * from './enabled.js'
export * from './disabled.js'
export * from './no_skills_available.js'
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to view and analyze the visual contents of an image file." |
*
* @param {Agent_Tool_Analyze_Image_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_analyze_image_desc: ((inputs?: Agent_Tool_Analyze_Image_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Analyze_Image_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Analyze_Image_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Analyze_Image_DescInputs */
const en_agent_tool_analyze_image_desc = /** @type {(inputs: Agent_Tool_Analyze_Image_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to view and analyze the visual contents of an image file.`)
};
const zh_agent_tool_analyze_image_desc = /** @type {(inputs: Agent_Tool_Analyze_Image_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体查看和分析图片文件的视觉内容。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to view and analyze the visual contents of an image file." |
*
* @param {Agent_Tool_Analyze_Image_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_analyze_image_desc = /** @type {((inputs?: Agent_Tool_Analyze_Image_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Analyze_Image_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_analyze_image_desc(inputs)
return zh_agent_tool_analyze_image_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Analyze Image" |
*
* @param {Agent_Tool_Analyze_Image_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_analyze_image_name: ((inputs?: Agent_Tool_Analyze_Image_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Analyze_Image_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Analyze_Image_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Analyze_Image_NameInputs */
const en_agent_tool_analyze_image_name = /** @type {(inputs: Agent_Tool_Analyze_Image_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Analyze Image`)
};
const zh_agent_tool_analyze_image_name = /** @type {(inputs: Agent_Tool_Analyze_Image_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`分析图片`)
};
/**
* | output |
* | --- |
* | "Analyze Image" |
*
* @param {Agent_Tool_Analyze_Image_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_analyze_image_name = /** @type {((inputs?: Agent_Tool_Analyze_Image_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Analyze_Image_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_analyze_image_name(inputs)
return zh_agent_tool_analyze_image_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to run terminal/shell commands in a highly isolated environment." |
*
* @param {Agent_Tool_Bash_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_bash_desc: ((inputs?: Agent_Tool_Bash_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Bash_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Bash_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Bash_DescInputs */
const en_agent_tool_bash_desc = /** @type {(inputs: Agent_Tool_Bash_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to run terminal/shell commands in a highly isolated environment.`)
};
const zh_agent_tool_bash_desc = /** @type {(inputs: Agent_Tool_Bash_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体在高度隔离的环境中运行终端/命令行命令。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to run terminal/shell commands in a highly isolated environment." |
*
* @param {Agent_Tool_Bash_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_bash_desc = /** @type {((inputs?: Agent_Tool_Bash_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Bash_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_bash_desc(inputs)
return zh_agent_tool_bash_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Sandboxed Terminal" |
*
* @param {Agent_Tool_Bash_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_bash_name: ((inputs?: Agent_Tool_Bash_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Bash_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Bash_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Bash_NameInputs */
const en_agent_tool_bash_name = /** @type {(inputs: Agent_Tool_Bash_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Sandboxed Terminal`)
};
const zh_agent_tool_bash_name = /** @type {(inputs: Agent_Tool_Bash_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`沙箱终端`)
};
/**
* | output |
* | --- |
* | "Sandboxed Terminal" |
*
* @param {Agent_Tool_Bash_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_bash_name = /** @type {((inputs?: Agent_Tool_Bash_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Bash_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_bash_name(inputs)
return zh_agent_tool_bash_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to create and upload new files to Shumai." |
*
* @param {Agent_Tool_Create_File_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_file_desc: ((inputs?: Agent_Tool_Create_File_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_File_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_File_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_File_DescInputs */
const en_agent_tool_create_file_desc = /** @type {(inputs: Agent_Tool_Create_File_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to create and upload new files to Shumai.`)
};
const zh_agent_tool_create_file_desc = /** @type {(inputs: Agent_Tool_Create_File_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体创建新文件并上传到 Shumai。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to create and upload new files to Shumai." |
*
* @param {Agent_Tool_Create_File_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_file_desc = /** @type {((inputs?: Agent_Tool_Create_File_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_File_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_file_desc(inputs)
return zh_agent_tool_create_file_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Create File" |
*
* @param {Agent_Tool_Create_File_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_file_name: ((inputs?: Agent_Tool_Create_File_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_File_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_File_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_File_NameInputs */
const en_agent_tool_create_file_name = /** @type {(inputs: Agent_Tool_Create_File_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Create File`)
};
const zh_agent_tool_create_file_name = /** @type {(inputs: Agent_Tool_Create_File_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建文件`)
};
/**
* | output |
* | --- |
* | "Create File" |
*
* @param {Agent_Tool_Create_File_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_file_name = /** @type {((inputs?: Agent_Tool_Create_File_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_File_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_file_name(inputs)
return zh_agent_tool_create_file_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to create new folders in Shumai." |
*
* @param {Agent_Tool_Create_Folder_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_folder_desc: ((inputs?: Agent_Tool_Create_Folder_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_Folder_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_Folder_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_Folder_DescInputs */
const en_agent_tool_create_folder_desc = /** @type {(inputs: Agent_Tool_Create_Folder_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to create new folders in Shumai.`)
};
const zh_agent_tool_create_folder_desc = /** @type {(inputs: Agent_Tool_Create_Folder_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体在 Shumai 中创建新文件夹。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to create new folders in Shumai." |
*
* @param {Agent_Tool_Create_Folder_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_folder_desc = /** @type {((inputs?: Agent_Tool_Create_Folder_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_Folder_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_folder_desc(inputs)
return zh_agent_tool_create_folder_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Create Folder" |
*
* @param {Agent_Tool_Create_Folder_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_folder_name: ((inputs?: Agent_Tool_Create_Folder_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_Folder_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_Folder_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_Folder_NameInputs */
const en_agent_tool_create_folder_name = /** @type {(inputs: Agent_Tool_Create_Folder_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Create Folder`)
};
const zh_agent_tool_create_folder_name = /** @type {(inputs: Agent_Tool_Create_Folder_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建文件夹`)
};
/**
* | output |
* | --- |
* | "Create Folder" |
*
* @param {Agent_Tool_Create_Folder_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_folder_name = /** @type {((inputs?: Agent_Tool_Create_Folder_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_Folder_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_folder_name(inputs)
return zh_agent_tool_create_folder_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to upload and stack a new version of an existing file in Shumai." |
*
* @param {Agent_Tool_Create_Version_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_version_desc: ((inputs?: Agent_Tool_Create_Version_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_Version_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_Version_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_Version_DescInputs */
const en_agent_tool_create_version_desc = /** @type {(inputs: Agent_Tool_Create_Version_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to upload and stack a new version of an existing file in Shumai.`)
};
const zh_agent_tool_create_version_desc = /** @type {(inputs: Agent_Tool_Create_Version_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体在 Shumai 中为已有文件上传并叠加新版本。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to upload and stack a new version of an existing file in Shumai." |
*
* @param {Agent_Tool_Create_Version_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_version_desc = /** @type {((inputs?: Agent_Tool_Create_Version_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_Version_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_version_desc(inputs)
return zh_agent_tool_create_version_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Create Version" |
*
* @param {Agent_Tool_Create_Version_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_version_name: ((inputs?: Agent_Tool_Create_Version_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Create_Version_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Create_Version_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Create_Version_NameInputs */
const en_agent_tool_create_version_name = /** @type {(inputs: Agent_Tool_Create_Version_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Create Version`)
};
const zh_agent_tool_create_version_name = /** @type {(inputs: Agent_Tool_Create_Version_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建版本`)
};
/**
* | output |
* | --- |
* | "Create Version" |
*
* @param {Agent_Tool_Create_Version_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_create_version_name = /** @type {((inputs?: Agent_Tool_Create_Version_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Create_Version_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_create_version_name(inputs)
return zh_agent_tool_create_version_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to list folders and browse files in Shumai." |
*
* @param {Agent_Tool_List_Assets_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_list_assets_desc: ((inputs?: Agent_Tool_List_Assets_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_List_Assets_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_List_Assets_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_List_Assets_DescInputs */
const en_agent_tool_list_assets_desc = /** @type {(inputs: Agent_Tool_List_Assets_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to list folders and browse files in Shumai.`)
};
const zh_agent_tool_list_assets_desc = /** @type {(inputs: Agent_Tool_List_Assets_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体列出文件夹并浏览 Shumai 中的文件。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to list folders and browse files in Shumai." |
*
* @param {Agent_Tool_List_Assets_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_list_assets_desc = /** @type {((inputs?: Agent_Tool_List_Assets_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_List_Assets_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_list_assets_desc(inputs)
return zh_agent_tool_list_assets_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Browse Shumai" |
*
* @param {Agent_Tool_List_Assets_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_list_assets_name: ((inputs?: Agent_Tool_List_Assets_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_List_Assets_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_List_Assets_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_List_Assets_NameInputs */
const en_agent_tool_list_assets_name = /** @type {(inputs: Agent_Tool_List_Assets_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Browse Shumai`)
};
const zh_agent_tool_list_assets_name = /** @type {(inputs: Agent_Tool_List_Assets_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`浏览 Shumai`)
};
/**
* | output |
* | --- |
* | "Browse Shumai" |
*
* @param {Agent_Tool_List_Assets_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_list_assets_name = /** @type {((inputs?: Agent_Tool_List_Assets_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_List_Assets_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_list_assets_name(inputs)
return zh_agent_tool_list_assets_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to load and read skill definitions to perform specialized actions." |
*
* @param {Agent_Tool_Read_Skill_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_read_skill_desc: ((inputs?: Agent_Tool_Read_Skill_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Skill_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Read_Skill_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Read_Skill_DescInputs */
const en_agent_tool_read_skill_desc = /** @type {(inputs: Agent_Tool_Read_Skill_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to load and read skill definitions to perform specialized actions.`)
};
const zh_agent_tool_read_skill_desc = /** @type {(inputs: Agent_Tool_Read_Skill_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体加载和读取技能定义以执行特定操作。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to load and read skill definitions to perform specialized actions." |
*
* @param {Agent_Tool_Read_Skill_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_read_skill_desc = /** @type {((inputs?: Agent_Tool_Read_Skill_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Skill_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_read_skill_desc(inputs)
return zh_agent_tool_read_skill_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Read Skills" |
*
* @param {Agent_Tool_Read_Skill_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_read_skill_name: ((inputs?: Agent_Tool_Read_Skill_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Skill_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Read_Skill_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Read_Skill_NameInputs */
const en_agent_tool_read_skill_name = /** @type {(inputs: Agent_Tool_Read_Skill_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Read Skills`)
};
const zh_agent_tool_read_skill_name = /** @type {(inputs: Agent_Tool_Read_Skill_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`读取技能`)
};
/**
* | output |
* | --- |
* | "Read Skills" |
*
* @param {Agent_Tool_Read_Skill_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_read_skill_name = /** @type {((inputs?: Agent_Tool_Read_Skill_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Skill_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_read_skill_name(inputs)
return zh_agent_tool_read_skill_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Allows the agent to extract still image frames from video files for analysis." |
*
* @param {Agent_Tool_Screenshot_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_screenshot_desc: ((inputs?: Agent_Tool_Screenshot_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Screenshot_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Screenshot_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Screenshot_DescInputs */
const en_agent_tool_screenshot_desc = /** @type {(inputs: Agent_Tool_Screenshot_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Allows the agent to extract still image frames from video files for analysis.`)
};
const zh_agent_tool_screenshot_desc = /** @type {(inputs: Agent_Tool_Screenshot_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`允许智能体从视频文件中提取静态画面进行分析。`)
};
/**
* | output |
* | --- |
* | "Allows the agent to extract still image frames from video files for analysis." |
*
* @param {Agent_Tool_Screenshot_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_screenshot_desc = /** @type {((inputs?: Agent_Tool_Screenshot_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Screenshot_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_screenshot_desc(inputs)
return zh_agent_tool_screenshot_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Video Frame Extraction" |
*
* @param {Agent_Tool_Screenshot_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_screenshot_name: ((inputs?: Agent_Tool_Screenshot_NameInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Screenshot_NameInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tool_Screenshot_NameInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tool_Screenshot_NameInputs */
const en_agent_tool_screenshot_name = /** @type {(inputs: Agent_Tool_Screenshot_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Video Frame Extraction`)
};
const zh_agent_tool_screenshot_name = /** @type {(inputs: Agent_Tool_Screenshot_NameInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`提取视频帧`)
};
/**
* | output |
* | --- |
* | "Video Frame Extraction" |
*
* @param {Agent_Tool_Screenshot_NameInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tool_screenshot_name = /** @type {((inputs?: Agent_Tool_Screenshot_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Screenshot_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tool_screenshot_name(inputs)
return zh_agent_tool_screenshot_name(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Tools" |
*
* @param {Agent_ToolsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tools: ((inputs?: Agent_ToolsInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_ToolsInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_ToolsInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_ToolsInputs */
const en_agent_tools = /** @type {(inputs: Agent_ToolsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Tools`)
};
const zh_agent_tools = /** @type {(inputs: Agent_ToolsInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`工具`)
};
/**
* | output |
* | --- |
* | "Tools" |
*
* @param {Agent_ToolsInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tools = /** @type {((inputs?: Agent_ToolsInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_ToolsInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tools(inputs)
return zh_agent_tools(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Configure which tools the agent is permitted to use." |
*
* @param {Agent_Tools_DescriptionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tools_description: ((inputs?: Agent_Tools_DescriptionInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tools_DescriptionInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Agent_Tools_DescriptionInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Agent_Tools_DescriptionInputs */
const en_agent_tools_description = /** @type {(inputs: Agent_Tools_DescriptionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Configure which tools the agent is permitted to use.`)
};
const zh_agent_tools_description = /** @type {(inputs: Agent_Tools_DescriptionInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`配置允许智能体使用的工具。`)
};
/**
* | output |
* | --- |
* | "Configure which tools the agent is permitted to use." |
*
* @param {Agent_Tools_DescriptionInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const agent_tools_description = /** @type {((inputs?: Agent_Tools_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tools_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_agent_tools_description(inputs)
return zh_agent_tools_description(inputs)
});