llama-index tools azure_translate integration
Project description
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.agent import OpenAIAgent
from llama_index.tools.azure_translate import AzureTranslateToolSpec
translate_tool = AzureTranslateToolSpec(api_key="your-key", region="eastus")
agent = OpenAIAgent.from_tools(
translate_tool.to_tool_list(),
verbose=True,
)
print(agent.chat('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. See here for examples.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for llama_index_tools_azure_translate-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93cd35e747c34fe028b2e260fd8477e8c3ef144665989e6283e28a4d3b102c1a |
|
MD5 | 08ffa5b67c62aba5b65839d07508a847 |
|
BLAKE2b-256 | 4ebaa263e55c7122eb4abb938ce56ebb5b9c9c66662dae496f1dfa0beb2b248e |
Hashes for llama_index_tools_azure_translate-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842bd2f7cc5458cec391e0173865d7df673b7673539fac9581dc98b6a105c857 |
|
MD5 | 9c7086ab04a0cd220f56b15ee305d949 |
|
BLAKE2b-256 | 5600a9f6a83c33393857b534cb24c1af31678ede5853d25ce0facfc840f1af29 |