Name | llama-index-tools-azure-translate JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | llama-index tools azure_translate integration |
upload_time | 2024-11-17 23:03:55 |
maintainer | ajhofmann |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-speech/examples/azure_speech.ipynb)
## Usage
Here's an example usage of the AzureTranslateToolSpec.
```python
from llama_index.agent.openai 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-azure-translate",
"maintainer": "ajhofmann",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/79/9c/5472ea8b709273bce00ec193a8ec0aec9c8d4ae14d1b28f344ee0e8e3ccb/llama_index_tools_azure_translate-0.3.0.tar.gz",
"platform": null,
"description": "# Azure Translate Tool\n\nThis tool connects to a Azure account and allows an Agent to perform text translation into a variet of different languages\n\nYou 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\n\nFor a full list of supported languages see here: https://learn.microsoft.com/en-us/azure/ai-services/translator/language-support\n\nThis tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-speech/examples/azure_speech.ipynb)\n\n## Usage\n\nHere's an example usage of the AzureTranslateToolSpec.\n\n```python\nfrom llama_index.agent.openai import OpenAIAgent\nfrom llama_index.tools.azure_translate import AzureTranslateToolSpec\n\ntranslate_tool = AzureTranslateToolSpec(api_key=\"your-key\", region=\"eastus\")\n\nagent = OpenAIAgent.from_tools(\n translate_tool.to_tool_list(),\n verbose=True,\n)\nprint(agent.chat('Say \"hello world\" in 5 different languages'))\n```\n\n`translate`: Translate text to a target language\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index tools azure_translate integration",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d3f1f85d95a8771da8bdebb1ba7a52e8e1f7888bbf82eecd931dbc114e6b4e7b",
"md5": "49b0e35250b74bd0caa8f9d4c5dc4890",
"sha256": "756c05d71de09d938964e2aa4e1c244b12c3c6fde510c8c8b1b5c467fdf55455"
},
"downloads": -1,
"filename": "llama_index_tools_azure_translate-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "49b0e35250b74bd0caa8f9d4c5dc4890",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2817,
"upload_time": "2024-11-17T23:03:54",
"upload_time_iso_8601": "2024-11-17T23:03:54.760349Z",
"url": "https://files.pythonhosted.org/packages/d3/f1/f85d95a8771da8bdebb1ba7a52e8e1f7888bbf82eecd931dbc114e6b4e7b/llama_index_tools_azure_translate-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "799c5472ea8b709273bce00ec193a8ec0aec9c8d4ae14d1b28f344ee0e8e3ccb",
"md5": "41ff04cfce1cb08e215e2f98df1343fc",
"sha256": "dce3c4cd12ba4baf37f31489c6c209dfd0434b47d11b31a167bd211c9dc67812"
},
"downloads": -1,
"filename": "llama_index_tools_azure_translate-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "41ff04cfce1cb08e215e2f98df1343fc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2460,
"upload_time": "2024-11-17T23:03:55",
"upload_time_iso_8601": "2024-11-17T23:03:55.608116Z",
"url": "https://files.pythonhosted.org/packages/79/9c/5472ea8b709273bce00ec193a8ec0aec9c8d4ae14d1b28f344ee0e8e3ccb/llama_index_tools_azure_translate-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 23:03:55",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-azure-translate"
}