Name | llama-index-tools-azure-translate JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | llama-index tools azure_translate integration |
upload_time | 2024-08-22 07:26:53 |
maintainer | ajhofmann |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
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.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/87/15/ab58905c852a850674548f1563f6f0ba2a3534d32e972306849f7024b8e0/llama_index_tools_azure_translate-0.2.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.2.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b60c00e2469a1cd30085aa8dbbef8882bb6b3f82c64f1876cc92a3cff46af5c9",
"md5": "4aa9893a63bb3d614ee4556c5159fd09",
"sha256": "1a38093c5bc07737f9bfa6d9e0b295f7f6b8036369495bc4bcf107c63191a2f0"
},
"downloads": -1,
"filename": "llama_index_tools_azure_translate-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4aa9893a63bb3d614ee4556c5159fd09",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 2820,
"upload_time": "2024-08-22T07:26:52",
"upload_time_iso_8601": "2024-08-22T07:26:52.309662Z",
"url": "https://files.pythonhosted.org/packages/b6/0c/00e2469a1cd30085aa8dbbef8882bb6b3f82c64f1876cc92a3cff46af5c9/llama_index_tools_azure_translate-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8715ab58905c852a850674548f1563f6f0ba2a3534d32e972306849f7024b8e0",
"md5": "6ff0f549cae4f478b653eeaaab57588b",
"sha256": "a3052abeb0ff9855adcc113b991641d3fc0a68698191b27f5670929f2edebca4"
},
"downloads": -1,
"filename": "llama_index_tools_azure_translate-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "6ff0f549cae4f478b653eeaaab57588b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 2488,
"upload_time": "2024-08-22T07:26:53",
"upload_time_iso_8601": "2024-08-22T07:26:53.630826Z",
"url": "https://files.pythonhosted.org/packages/87/15/ab58905c852a850674548f1563f6f0ba2a3534d32e972306849f7024b8e0/llama_index_tools_azure_translate-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 07:26:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-azure-translate"
}