You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tools.ts 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. const translation = {
  2. title: 'Tools',
  3. createCustomTool: 'Create Custom Tool',
  4. customToolTip: 'Learn more about Dify custom tools',
  5. type: {
  6. all: 'All',
  7. builtIn: 'Tools',
  8. custom: 'Custom',
  9. workflow: 'Workflow',
  10. },
  11. contribute: {
  12. line1: 'I\'m interested in ',
  13. line2: 'contributing tools to Dify.',
  14. viewGuide: 'View the guide',
  15. },
  16. author: 'By',
  17. auth: {
  18. authorized: 'Authorized',
  19. setup: 'Set up authorization to use',
  20. setupModalTitle: 'Set Up Authorization',
  21. setupModalTitleDescription: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
  22. },
  23. includeToolNum: '{{num}} {{action}} included',
  24. addTool: 'Add Tool',
  25. addToolModal: {
  26. type: 'type',
  27. category: 'category',
  28. add: 'add',
  29. added: 'added',
  30. manageInTools: 'Manage in Tools',
  31. custom: {
  32. title: 'No custom tool available',
  33. tip: 'Create a custom tool',
  34. },
  35. workflow: {
  36. title: 'No workflow tool available',
  37. tip: 'Publish workflows as tools in Studio',
  38. },
  39. mcp: {
  40. title: 'No MCP tool available',
  41. tip: 'Add an MCP server',
  42. },
  43. agent: {
  44. title: 'No agent strategy available',
  45. },
  46. },
  47. createTool: {
  48. title: 'Create Custom Tool',
  49. editAction: 'Configure',
  50. editTitle: 'Edit Custom Tool',
  51. name: 'Name',
  52. toolNamePlaceHolder: 'Enter the tool name',
  53. nameForToolCall: 'Tool call name',
  54. nameForToolCallPlaceHolder: 'Used for machine recognition, such as getCurrentWeather, list_pets',
  55. nameForToolCallTip: 'Only supports numbers, letters, and underscores.',
  56. description: 'Description',
  57. descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',
  58. schema: 'Schema',
  59. schemaPlaceHolder: 'Enter your OpenAPI schema here',
  60. viewSchemaSpec: 'View the OpenAPI-Swagger Specification',
  61. importFromUrl: 'Import from URL',
  62. importFromUrlPlaceHolder: 'https://...',
  63. urlError: 'Please enter a valid URL',
  64. examples: 'Examples',
  65. exampleOptions: {
  66. json: 'Weather(JSON)',
  67. yaml: 'Pet Store(YAML)',
  68. blankTemplate: 'Blank Template',
  69. },
  70. availableTools: {
  71. title: 'Available Tools',
  72. name: 'Name',
  73. description: 'Description',
  74. method: 'Method',
  75. path: 'Path',
  76. action: 'Actions',
  77. test: 'Test',
  78. },
  79. authMethod: {
  80. title: 'Authorization method',
  81. type: 'Authorization type',
  82. keyTooltip: 'Http Header Key, You can leave it with "Authorization" if you have no idea what it is or set it to a custom value',
  83. queryParam: 'Query Parameter',
  84. queryParamTooltip: 'The name of the API key query parameter to pass, e.g. "key" in "https://example.com/test?key=API_KEY".',
  85. types: {
  86. none: 'None',
  87. api_key_header: 'Header',
  88. api_key_query: 'Query Param',
  89. apiKeyPlaceholder: 'HTTP header name for API Key',
  90. apiValuePlaceholder: 'Enter API Key',
  91. queryParamPlaceholder: 'Query parameter name for API Key',
  92. },
  93. key: 'Key',
  94. value: 'Value',
  95. },
  96. authHeaderPrefix: {
  97. title: 'Auth Type',
  98. types: {
  99. basic: 'Basic',
  100. bearer: 'Bearer',
  101. custom: 'Custom',
  102. },
  103. },
  104. privacyPolicy: 'Privacy policy',
  105. privacyPolicyPlaceholder: 'Please enter privacy policy',
  106. toolInput: {
  107. title: 'Tool Input',
  108. name: 'Name',
  109. required: 'Required',
  110. method: 'Method',
  111. methodSetting: 'Setting',
  112. methodSettingTip: 'User fills in the tool configuration',
  113. methodParameter: 'Parameter',
  114. methodParameterTip: 'LLM fills during inference',
  115. label: 'Tags',
  116. labelPlaceholder: 'Choose tags(optional)',
  117. description: 'Description',
  118. descriptionPlaceholder: 'Description of the parameter\'s meaning',
  119. },
  120. customDisclaimer: 'Custom disclaimer',
  121. customDisclaimerPlaceholder: 'Please enter custom disclaimer',
  122. confirmTitle: 'Confirm to save ?',
  123. confirmTip: 'Apps using this tool will be affected',
  124. deleteToolConfirmTitle: 'Delete this Tool?',
  125. deleteToolConfirmContent: 'Deleting the Tool is irreversible. Users will no longer be able to access your Tool.',
  126. },
  127. test: {
  128. title: 'Test',
  129. parametersValue: 'Parameters & Value',
  130. parameters: 'Parameters',
  131. value: 'Value',
  132. testResult: 'Test Results',
  133. testResultPlaceholder: 'Test result will show here',
  134. },
  135. thought: {
  136. using: 'Using',
  137. used: 'Used',
  138. requestTitle: 'Request',
  139. responseTitle: 'Response',
  140. },
  141. setBuiltInTools: {
  142. info: 'Info',
  143. setting: 'Setting',
  144. toolDescription: 'Tool description',
  145. parameters: 'parameters',
  146. string: 'string',
  147. number: 'number',
  148. file: 'file',
  149. required: 'Required',
  150. infoAndSetting: 'Info & Settings',
  151. },
  152. noCustomTool: {
  153. title: 'No custom tools!',
  154. content: 'Add and manage your custom tools here for building AI apps.',
  155. createTool: 'Create Tool',
  156. },
  157. noSearchRes: {
  158. title: 'Sorry, no results!',
  159. content: 'We couldn\'t find any tools that match your search.',
  160. reset: 'Reset Search',
  161. },
  162. builtInPromptTitle: 'Prompt',
  163. toolRemoved: 'Tool removed',
  164. notAuthorized: 'Not authorized',
  165. howToGet: 'How to get',
  166. openInStudio: 'Open in Studio',
  167. toolNameUsageTip: 'Tool call name for agent reasoning and prompting',
  168. copyToolName: 'Copy Name',
  169. noTools: 'No tools found',
  170. mcp: {
  171. create: {
  172. cardTitle: 'Add MCP Server (HTTP)',
  173. cardLink: 'Learn more about MCP server integration',
  174. },
  175. noConfigured: 'Unconfigured',
  176. updateTime: 'Updated',
  177. toolsCount: '{{count}} tools',
  178. noTools: 'No tools available',
  179. modal: {
  180. title: 'Add MCP Server (HTTP)',
  181. editTitle: 'Edit MCP Server (HTTP)',
  182. name: 'Name & Icon',
  183. namePlaceholder: 'Name your MCP server',
  184. serverUrl: 'Server URL',
  185. serverUrlPlaceholder: 'URL to server endpoint',
  186. serverUrlWarning: 'Updating the server address may disrupt applications that depend on this server',
  187. serverIdentifier: 'Server Identifier',
  188. serverIdentifierTip: 'Unique identifier for the MCP server within the workspace. Lowercase letters, numbers, underscores, and hyphens only. Up to 24 characters.',
  189. serverIdentifierPlaceholder: 'Unique identifier, e.g., my-mcp-server',
  190. serverIdentifierWarning: 'The server won’t be recognized by existing apps after an ID change',
  191. cancel: 'Cancel',
  192. save: 'Save',
  193. confirm: 'Add & Authorize',
  194. timeout: 'Timeout',
  195. sseReadTimeout: 'SSE Read Timeout',
  196. },
  197. delete: 'Remove MCP Server',
  198. deleteConfirmTitle: 'Would you like to remove {{mcp}}?',
  199. operation: {
  200. edit: 'Edit',
  201. remove: 'Remove',
  202. },
  203. authorize: 'Authorize',
  204. authorizing: 'Authorizing...',
  205. authorizingRequired: 'Authorization is required',
  206. authorizeTip: 'After authorization, tools will be displayed here.',
  207. update: 'Update',
  208. updating: 'Updating',
  209. gettingTools: 'Getting Tools...',
  210. updateTools: 'Updating Tools...',
  211. toolsEmpty: 'Tools not loaded',
  212. getTools: 'Get tools',
  213. toolUpdateConfirmTitle: 'Update Tool List',
  214. toolUpdateConfirmContent: 'Updating the tool list may affect existing apps. Do you wish to proceed?',
  215. toolsNum: '{{count}} tools included',
  216. onlyTool: '1 tool included',
  217. identifier: 'Server Identifier (Click to Copy)',
  218. server: {
  219. title: 'MCP Server',
  220. url: 'Server URL',
  221. reGen: 'Do you want to regenerator server URL?',
  222. addDescription: 'Add description',
  223. edit: 'Edit description',
  224. modal: {
  225. addTitle: 'Add description to enable MCP server',
  226. editTitle: 'Edit description',
  227. description: 'Description',
  228. descriptionPlaceholder: 'Explain what this tool does and how it should be used by the LLM',
  229. parameters: 'Parameters',
  230. parametersTip: 'Add descriptions for each parameter to help the LLM understand their purpose and constraints.',
  231. parametersPlaceholder: 'Parameter purpose and constraints',
  232. confirm: 'Enable MCP Server',
  233. },
  234. publishTip: 'App not published. Please publish the app first.',
  235. },
  236. },
  237. allTools: 'All tools',
  238. }
  239. export default translation