Skip to content

Conversation

@Trinath052004
Copy link

@Trinath052004 Trinath052004 commented Feb 9, 2026

Description

Added Google Cloud Vision API integration with 9 detection capabilities including label detection, OCR, face detection, object localization, and more

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

Related Issues

Closes #3616

Changes Made

  • Added vision_tool module with 9 Google Cloud Vision API detection functions
  • Updated integrations.py to support GCP Vision API credentials
  • Added comprehensive error handling for file validation and API errors
  • Created 24 unit tests covering all features and edge cases
  • Added README documentation with usage examples

Testing

Describe the tests you ran to verify your changes:

  • Unit tests pass (cd core && pytest tests/)
  • Lint passes (cd core && ruff check .)
  • Manual testing performed

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Screenshots (if applicable)

N/A -Backend tool integration

aden_supported=False,
aden_provider_name="",
direct_api_key_supported=True,
api_key_instructions="""To get a Google Cloud Vision API key:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add API key instructions in readme file instead of here

Copy link
Author

@Trinath052004 Trinath052004 Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for suggestion!, I noticed @RichardTang-Aden deleted the integrations.py and added .py files to each tool, following the same pattern-I created gcp_vision.py file .
Hope, this will resolve ur concerns.
ThankYou.

Copy link

@prakharsingh-74 prakharsingh-74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add all the reference screenshot also, that this issue has been resolved

@Trinath052004
Copy link
Author

Initially added the Vision integration credential to older integration.py structure.
After syncing with latest main, I aligned with the updated architecture and moved the logic to the gcp_vision.py; removing the old file.
Happy to make further changes :)

Copy link
Collaborator

@Hundao Hundao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments inline. Can you also share some e2e test output showing a couple tools working? Thanks!

**LLM_CREDENTIALS,
**SEARCH_CREDENTIALS,
**EMAIL_CREDENTIALS,
**INTEGRATION_CREDENTIALS,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INTEGRATION_CREDENTIALS is never imported or defined anywhere. This will crash at runtime.

"""

from .base import CredentialError, CredentialSpec
from .browser import get_aden_auth_url, get_aden_setup_url, open_browser
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports already exist a few lines below, remove the duplicates.

.gitignore Outdated
docs/github-issues/*
core/tests/*dumps/*
screenshots/* No newline at end of file
agent_logs/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to the Vision tool, please revert.

Copy link

@prakharsingh-74 prakharsingh-74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Trinath052004 please check the lint test they are failing you can check it out here - https://github.com/adenhq/hive/actions/runs/21870639828/job/63208638027?pr=4231

Also please do the changes suggested by @Hundao

@Trinath052004
Copy link
Author

Trinath052004 commented Feb 11, 2026

Left some comments inline. Can you also share some e2e test output showing a couple tools working? Thanks!

Hi @Hundao i have made suggested changes and ran e2e tests, the results are as follows:

Test 1:
Screenshot 2026-02-11 201825

Test2:
Screenshot 2026-02-11 203619

btw , i apologize for creating quite a number of commits( i jus wanted to make sure everything works perfect!)

Hey @Trinath052004 please check the lint test they are failing you can check it out here - https://github.com/adenhq/hive/actions/runs/21870639828/job/63208638027?pr=4231

Also please do the changes suggested by @Hundao

Thankyou @prakharsingh-74 for the review and suggestion( i have updated accordingly!)


@Hundao , i am open to make further changes if necessary, Thankyou for trusting me by assigning this issue to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Integration]: Google Cloud Vision integration tool for image analysis

3 participants