-
Notifications
You must be signed in to change notification settings - Fork 16.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community: add Salesforce tools and API wrapper #29750
Conversation
Add Salesforce integration with tools for querying, listing objects, and retrieving object information. Includes a comprehensive API wrapper to interact with Salesforce using SOQL queries and metadata retrieval.
Add simple-salesforce library to pyproject.toml to support Salesforce integration testing
Add exports for Salesforce tool classes in the __init__.py file, making them easily importable from the package
- Add type checking for Salesforce import - Enhance error handling and import mechanism - Improve docstrings and code formatting - Add `__all__` export for better module clarity - Refactor error messages and result formatting
- Enhance QuerySalesforceTool to handle dictionary results - Simplify type imports and code formatting - Improve result conversion for better compatibility - Minor code cleanup and type annotations
- Create mock Salesforce client for testing - Implement test cases for QuerySalesforceTool - Add tests for InfoSalesforceTool and ListSalesforceTool - Cover successful query and error handling scenarios - Provide fixtures and mocking for Salesforce interactions
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, thanks for this. This adds a net-new integration into langchain-community. We are recommending that new contributions be implemented via separate packages. Would you be interested in publishing an OSS integration package (e.g., langchain-salesforce
)? We've written a walkthrough on this process here:
https://python.langchain.com/docs/contributing/how_to/integrations/
We are encouraging contributors of LangChain integrations to go this route. This way we don't have to be in the loop for reviews, you're able to properly integration test the tool, and you have control over versioning.
Docs would continue to be maintained in the langchain
repo.
Let me know what you think!
Title: community: add Salesforce tools and API wrapper
Description:
This PR introduces Salesforce integration tools within the
community
package, providing utilities for querying, listing objects, and retrieving metadata using SOQL. It includes:simple-salesforce
as a dependency for testing.Issue: N/A
Dependencies:
simple-salesforce
topyproject.toml
for testing.Tests & Documentation: