tools.ts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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: 'Built-in',
  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. unauthorized: 'To Authorize',
  19. authorized: 'Authorized',
  20. setup: 'Set up authorization to use',
  21. setupModalTitle: 'Set Up Authorization',
  22. setupModalTitleDescription: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
  23. },
  24. includeToolNum: '{{num}} tools included',
  25. addTool: 'Add Tool',
  26. addToolModal: {
  27. type: 'type',
  28. category: 'category',
  29. add: 'add',
  30. added: 'added',
  31. manageInTools: 'Manage in Tools',
  32. emptyTitle: 'No workflow tool available',
  33. emptyTip: 'Go to "Workflow -> Publish as Tool"',
  34. },
  35. createTool: {
  36. title: 'Create Custom Tool',
  37. editAction: 'Configure',
  38. editTitle: 'Edit Custom Tool',
  39. name: 'Name',
  40. toolNamePlaceHolder: 'Enter the tool name',
  41. nameForToolCall: 'Tool call name',
  42. nameForToolCallPlaceHolder: 'Used for machine recognition, such as getCurrentWeather, list_pets',
  43. nameForToolCallTip: 'Only supports numbers, letters, and underscores.',
  44. description: 'Description',
  45. descriptionPlaceholder: 'Brief description of the tool\'s purpose, e.g., get the temperature for a specific location.',
  46. schema: 'Schema',
  47. schemaPlaceHolder: 'Enter your OpenAPI schema here',
  48. viewSchemaSpec: 'View the OpenAPI-Swagger Specification',
  49. importFromUrl: 'Import from URL',
  50. importFromUrlPlaceHolder: 'https://...',
  51. urlError: 'Please enter a valid URL',
  52. examples: 'Examples',
  53. exampleOptions: {
  54. json: 'Weather(JSON)',
  55. yaml: 'Pet Store(YAML)',
  56. blankTemplate: 'Blank Template',
  57. },
  58. availableTools: {
  59. title: 'Available Tools',
  60. name: 'Name',
  61. description: 'Description',
  62. method: 'Method',
  63. path: 'Path',
  64. action: 'Actions',
  65. test: 'Test',
  66. },
  67. authMethod: {
  68. title: 'Authorization method',
  69. type: 'Authorization type',
  70. 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',
  71. types: {
  72. none: 'None',
  73. api_key: 'API Key',
  74. apiKeyPlaceholder: 'HTTP header name for API Key',
  75. apiValuePlaceholder: 'Enter API Key',
  76. },
  77. key: 'Key',
  78. value: 'Value',
  79. },
  80. authHeaderPrefix: {
  81. title: 'Auth Type',
  82. types: {
  83. basic: 'Basic',
  84. bearer: 'Bearer',
  85. custom: 'Custom',
  86. },
  87. },
  88. privacyPolicy: 'Privacy policy',
  89. privacyPolicyPlaceholder: 'Please enter privacy policy',
  90. toolInput: {
  91. title: 'Tool Input',
  92. name: 'Name',
  93. required: 'Required',
  94. method: 'Method',
  95. methodSetting: 'Setting',
  96. methodSettingTip: 'User fills in the tool configuration',
  97. methodParameter: 'Parameter',
  98. methodParameterTip: 'LLM fills during inference',
  99. label: 'Tags',
  100. labelPlaceholder: 'Choose tags(optional)',
  101. description: 'Description',
  102. descriptionPlaceholder: 'Description of the parameter\'s meaning',
  103. },
  104. customDisclaimer: 'Custom disclaimer',
  105. customDisclaimerPlaceholder: 'Please enter custom disclaimer',
  106. confirmTitle: 'Confirm to save ?',
  107. confirmTip: 'Apps using this tool will be affected',
  108. deleteToolConfirmTitle: 'Delete this Tool?',
  109. deleteToolConfirmContent: 'Deleting the Tool is irreversible. Users will no longer be able to access your Tool.',
  110. },
  111. test: {
  112. title: 'Test',
  113. parametersValue: 'Parameters & Value',
  114. parameters: 'Parameters',
  115. value: 'Value',
  116. testResult: 'Test Results',
  117. testResultPlaceholder: 'Test result will show here',
  118. },
  119. thought: {
  120. using: 'Using',
  121. used: 'Used',
  122. requestTitle: 'Request',
  123. responseTitle: 'Response',
  124. },
  125. setBuiltInTools: {
  126. info: 'Info',
  127. setting: 'Setting',
  128. toolDescription: 'Tool description',
  129. parameters: 'parameters',
  130. string: 'string',
  131. number: 'number',
  132. required: 'Required',
  133. infoAndSetting: 'Info & Settings',
  134. },
  135. noCustomTool: {
  136. title: 'No custom tools!',
  137. content: 'Add and manage your custom tools here for building AI apps.',
  138. createTool: 'Create Tool',
  139. },
  140. noSearchRes: {
  141. title: 'Sorry, no results!',
  142. content: 'We couldn\'t find any tools that match your search.',
  143. reset: 'Reset Search',
  144. },
  145. builtInPromptTitle: 'Prompt',
  146. toolRemoved: 'Tool removed',
  147. notAuthorized: 'Tool not authorized',
  148. howToGet: 'How to get',
  149. openInStudio: 'Open in Studio',
  150. toolNameUsageTip: 'Tool call name for agent reasoning and prompting',
  151. }
  152. export default translation