mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
37 lines
1.4 KiB
JavaScript
37 lines
1.4 KiB
JavaScript
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js'
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Configure_Agent_DescriptionInputs */
|
|
|
|
const en_configure_agent_description =
|
|
/** @type {(inputs: Configure_Agent_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (
|
|
`Configure your AI agent's personality and capabilities.`
|
|
)
|
|
}
|
|
|
|
const zh_configure_agent_description =
|
|
/** @type {(inputs: Configure_Agent_DescriptionInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`配置 AI 智能体的个性和功能。`)
|
|
}
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Configure your AI agent's personality and capabilities." |
|
|
*
|
|
* @param {Configure_Agent_DescriptionInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const configure_agent_description =
|
|
/** @type {((inputs?: Configure_Agent_DescriptionInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Configure_Agent_DescriptionInputs, { locale?: "en" | "zh" }, {}>} */ (
|
|
(inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === 'en') return en_configure_agent_description(inputs)
|
|
return zh_configure_agent_description(inputs)
|
|
}
|
|
)
|