Translate Text Using Azure
Translate text into a variety of languages using Azure Translate. Connects to your Azure account.
Why it matters
Integrate Azure's powerful translation capabilities into your applications. This tool allows agents to translate text into a variety of languages, enabling seamless multilingual communication and content localization.
Outcomes
What it gets done
Translate text to a target language using Azure.
Integrate translation functionality into an agent workflow.
Automate multilingual content generation.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-tool-tools-azure-translate | bash Capabilities
What this skill does
Converts text between languages while preserving meaning.
Writes source code or scripts from a description.
Overview
Azure Translate Tool
What it does
This tool connects to an Azure account, enabling an Agent to perform text translation into a variety of languages.
How it connects
Use this tool when you need an Agent to translate text. This tool requires setup using an Azure API key and translate instance. Do not use this tool if you only need to perform occasional, manual translations. It is designed for programmatic use within an Agent and requires Azure setup.
Source README
Azure Translate Tool
This tool connects to a Azure account and allows an Agent to perform text translation into a variet of different languages
You will need to set up an api key and translate instance using Azure, learn more here: https://learn.microsoft.com/en-us/azure/ai-services/translator/translator-overview
For a full list of supported languages see here: https://learn.microsoft.com/en-us/azure/ai-services/translator/language-support
This tool has a more extensive example usage documented in a Jupyter notebook here
Usage
Here's an example usage of the AzureTranslateToolSpec.
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
from llama_index.tools.azure_translate import AzureTranslateToolSpec
translate_tool = AzureTranslateToolSpec(api_key="your-key", region="eastus")
agent = FunctionAgent(
tools=translate_tool.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run('Say "hello world" in 5 different languages'))
translate: Translate text to a target language
This loader is designed to be used as a way to load data as a Tool in a Agent.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.