mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 15:07:40 +00:00
- Remove chatbotAgentId from team settings and schema definition - Make agentId a required parameter in ChatRequest DTO and chatService - Fetch chatbot agents on chatbot sidebar mount and default to first enabled chat agent - Render an agent selector dropdown inside the message input area - Update existing chat sessions to follow the selected agent when continuing a conversation
29 lines
1.1 KiB
JavaScript
Generated
29 lines
1.1 KiB
JavaScript
Generated
/* eslint-disable */
|
|
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
|
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
|
|
/** @typedef {{}} Select_AgentInputs */
|
|
|
|
const en_select_agent = /** @type {(inputs: Select_AgentInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`Select Agent`)
|
|
};
|
|
|
|
const zh_select_agent = /** @type {(inputs: Select_AgentInputs) => LocalizedString} */ () => {
|
|
return /** @type {LocalizedString} */ (`选择智能体`)
|
|
};
|
|
|
|
/**
|
|
* | output |
|
|
* | --- |
|
|
* | "Select Agent" |
|
|
*
|
|
* @param {Select_AgentInputs} inputs
|
|
* @param {{ locale?: "en" | "zh" }} options
|
|
* @returns {LocalizedString}
|
|
*/
|
|
export const select_agent = /** @type {((inputs?: Select_AgentInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Select_AgentInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
if (locale === "en") return en_select_agent(inputs)
|
|
return zh_select_agent(inputs)
|
|
}); |