mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 04:44:28 +00:00
feat(agent): consolidate media tools into read_asset and add S3 key support to download_asset (#376)
* feat(agent): consolidate media tools into read_asset and add S3 key support to download_asset * fix(agent): refine parameter descriptions and remove download URL from read_asset text content * fix(agent): resolve owning asset and enforce RBAC permissions when downloading by S3 key
This commit is contained in:
+2
-6
@@ -458,12 +458,8 @@ 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_read_pdf_pages_name.js";
|
||||
export * from "./agent_tool_read_pdf_pages_desc.js";
|
||||
export * from "./agent_tool_read_asset_name.js";
|
||||
export * from "./agent_tool_read_asset_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";
|
||||
|
||||
+2
-6
@@ -460,12 +460,8 @@ 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_read_pdf_pages_name.js'
|
||||
export * from './agent_tool_read_pdf_pages_desc.js'
|
||||
export * from './agent_tool_read_asset_name.js'
|
||||
export * from './agent_tool_read_asset_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'
|
||||
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | 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 = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* 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
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | 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 = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* 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
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Allows the agent to view and inspect images, video frames, and document pages." |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Asset_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_asset_desc: ((inputs?: Agent_Tool_Read_Asset_DescInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Asset_DescInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Agent_Tool_Read_Asset_DescInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Agent_Tool_Read_Asset_DescInputs */
|
||||
|
||||
const en_agent_tool_read_asset_desc = /** @type {(inputs: Agent_Tool_Read_Asset_DescInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Allows the agent to view and inspect images, video frames, and document pages.`)
|
||||
};
|
||||
|
||||
const zh_agent_tool_read_asset_desc = /** @type {(inputs: Agent_Tool_Read_Asset_DescInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`允许智能体查看和分析图片、视频画面和文档页面。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Allows the agent to view and inspect images, video frames, and document pages." |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Asset_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_asset_desc = /** @type {((inputs?: Agent_Tool_Read_Asset_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Asset_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_agent_tool_read_asset_desc(inputs)
|
||||
return zh_agent_tool_read_asset_desc(inputs)
|
||||
});
|
||||
Generated
Vendored
+5
-5
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Video Frame Extraction" |
|
||||
* | "Read Asset" |
|
||||
*
|
||||
* @param {Agent_Tool_Screenshot_NameInputs} inputs
|
||||
* @param {Agent_Tool_Read_Asset_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_screenshot_name: ((inputs?: Agent_Tool_Screenshot_NameInputs, options?: {
|
||||
export const agent_tool_read_asset_name: ((inputs?: Agent_Tool_Read_Asset_NameInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Screenshot_NameInputs, {
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Asset_NameInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Agent_Tool_Screenshot_NameInputs = {};
|
||||
export type Agent_Tool_Read_Asset_NameInputs = {};
|
||||
@@ -0,0 +1,29 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Agent_Tool_Read_Asset_NameInputs */
|
||||
|
||||
const en_agent_tool_read_asset_name = /** @type {(inputs: Agent_Tool_Read_Asset_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Read Asset`)
|
||||
};
|
||||
|
||||
const zh_agent_tool_read_asset_name = /** @type {(inputs: Agent_Tool_Read_Asset_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`读取资源`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Read Asset" |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Asset_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_asset_name = /** @type {((inputs?: Agent_Tool_Read_Asset_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Asset_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_agent_tool_read_asset_name(inputs)
|
||||
return zh_agent_tool_read_asset_name(inputs)
|
||||
});
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Allows the agent to convert and view specific pages of a PDF document as images." |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Pdf_Pages_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_pdf_pages_desc: ((inputs?: Agent_Tool_Read_Pdf_Pages_DescInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Pdf_Pages_DescInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Agent_Tool_Read_Pdf_Pages_DescInputs = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Agent_Tool_Read_Pdf_Pages_DescInputs */
|
||||
|
||||
const en_agent_tool_read_pdf_pages_desc = /** @type {(inputs: Agent_Tool_Read_Pdf_Pages_DescInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Allows the agent to convert and view specific pages of a PDF document as images.`)
|
||||
};
|
||||
|
||||
const zh_agent_tool_read_pdf_pages_desc = /** @type {(inputs: Agent_Tool_Read_Pdf_Pages_DescInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`允许智能体将 PDF 文件的指定页面转换为图片并查看。`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Allows the agent to convert and view specific pages of a PDF document as images." |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Pdf_Pages_DescInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_pdf_pages_desc = /** @type {((inputs?: Agent_Tool_Read_Pdf_Pages_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Pdf_Pages_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_agent_tool_read_pdf_pages_desc(inputs)
|
||||
return zh_agent_tool_read_pdf_pages_desc(inputs)
|
||||
});
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Read PDF Pages" |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Pdf_Pages_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_pdf_pages_name: ((inputs?: Agent_Tool_Read_Pdf_Pages_NameInputs, options?: {
|
||||
locale?: "en" | "zh";
|
||||
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Tool_Read_Pdf_Pages_NameInputs, {
|
||||
locale?: "en" | "zh";
|
||||
}, {}>;
|
||||
export type LocalizedString = import("../runtime.js").LocalizedString;
|
||||
export type Agent_Tool_Read_Pdf_Pages_NameInputs = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* eslint-disable */
|
||||
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
||||
|
||||
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
||||
|
||||
/** @typedef {{}} Agent_Tool_Read_Pdf_Pages_NameInputs */
|
||||
|
||||
const en_agent_tool_read_pdf_pages_name = /** @type {(inputs: Agent_Tool_Read_Pdf_Pages_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`Read PDF Pages`)
|
||||
};
|
||||
|
||||
const zh_agent_tool_read_pdf_pages_name = /** @type {(inputs: Agent_Tool_Read_Pdf_Pages_NameInputs) => LocalizedString} */ () => {
|
||||
return /** @type {LocalizedString} */ (`读取 PDF 页面`)
|
||||
};
|
||||
|
||||
/**
|
||||
* | output |
|
||||
* | --- |
|
||||
* | "Read PDF Pages" |
|
||||
*
|
||||
* @param {Agent_Tool_Read_Pdf_Pages_NameInputs} inputs
|
||||
* @param {{ locale?: "en" | "zh" }} options
|
||||
* @returns {LocalizedString}
|
||||
*/
|
||||
export const agent_tool_read_pdf_pages_name = /** @type {((inputs?: Agent_Tool_Read_Pdf_Pages_NameInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Tool_Read_Pdf_Pages_NameInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
||||
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
||||
if (locale === "en") return en_agent_tool_read_pdf_pages_name(inputs)
|
||||
return zh_agent_tool_read_pdf_pages_name(inputs)
|
||||
});
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* | 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 = {};
|
||||
@@ -1,29 +0,0 @@
|
||||
/* 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)
|
||||
});
|
||||
@@ -1,29 +0,0 @@
|
||||
/* 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)
|
||||
});
|
||||
Reference in New Issue
Block a user