langchain/libs/community/tests/unit_tests/tools
Sheepsta300 580a8d53f9
community: Add configurable VisualFeatures to the AzureAiServicesImageAnalysisTool (#27444)
Thank you for contributing to LangChain!

- [ ] **PR title**: community: Add configurable `VisualFeatures` to the
`AzureAiServicesImageAnalysisTool`


- [ ] **PR message**:  
- **Description:** The `AzureAiServicesImageAnalysisTool` is a good
service and utilises the Azure AI Vision package under the hood.
However, since the creation of this tool, new `VisualFeatures` have been
added to allow the user to request other image specific information to
be returned. Currently, the tool offers neither configuration of which
features should be return nor does it offer any newer feature types. The
aim of this PR is to address this and expose more of the Azure Service
in this integration.
- **Dependencies:** no new dependencies in the main class file,
azure.ai.vision.imageanalysis added to extra test dependencies file.


- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. Although no tests exist for already implemented Azure Service tools,
I've created 3 unit tests for this class that test initialisation and
credentials, local file analysis and a test for the new changes/
features option.


- [ ] **Lint and test**: All linting has passed.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-12-16 18:30:04 +00:00
..
audio multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
azure_ai_services community: Add configurable VisualFeatures to the AzureAiServicesImageAnalysisTool (#27444) 2024-12-16 18:30:04 +00:00
databricks community[patch]: Support passing extra params for executing functions in UCFunctionToolkit (#25652) 2024-08-28 18:47:32 -07:00
eden_ai community[patch],core[patch]: Update EdenaiTool root_validator and add unit test in core (#25233) 2024-08-09 15:59:27 +00:00
file_management infra: Fix test filesystem paths incompatible with windows (#14388) 2023-12-21 13:45:42 -08:00
gmail community: add args_schema to GmailSendMessage (#14973) 2023-12-22 13:07:44 -08:00
openai_dalle_image_generation community[patch]: add Integration for OpenAI image gen with v1 sdk (#17771) 2024-03-29 00:23:14 +00:00
playwright community[patch]: Fix Playwright Tools bug with Pydantic schemas (#27050) 2024-10-30 23:45:36 +00:00
powerbi community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
requests Add dangerous parameter to requests tool (#18697) 2024-03-07 15:10:56 -05:00
shell community[patch]: Basic Logging and Human input to ShellTool (#15932) 2024-01-17 12:57:51 -08:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_exported.py community[patch]: fix QuerySQLDatabaseTool name (#28659) 2024-12-12 19:16:03 -08:00
test_few_shot.py community: Add FewShotSQLTool (#28232) 2024-12-16 15:37:21 +00:00
test_imports.py community[patch]: fix QuerySQLDatabaseTool name (#28659) 2024-12-12 19:16:03 -08:00
test_json.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
test_signatures.py core[minor], integrations...[patch]: Support ToolCall as Tool input and ToolMessage as Tool output (#24038) 2024-07-11 14:54:02 -07:00
test_you.py multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
test_zapier.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00