Azure translate
AzureTranslateToolSpec #
Bases: BaseToolSpec
Azure Translate tool spec.
Source code in llama-index-integrations/tools/llama-index-tools-azure-translate/llama_index/tools/azure_translate/base.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
translate #
translate(text: str, language: str)
Use this tool to translate text from one language to another. The source language will be automatically detected. You need to specify the target language using a two character language code.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
language |
str
|
Target translation language. |
required |
Source code in llama-index-integrations/tools/llama-index-tools-azure-translate/llama_index/tools/azure_translate/base.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|