llama-index tools salesforce integration
Project description
Salesforce Tool
This tool connects to a Salesforce environment and allow the Agent to perform SOQL and SOSL queries.
Usage
This tool is a wrapper tool using the simple salesforce library. More information on this library here
Here's an example usage of the Salesforce Tool:
from llama_index.tools.salesforce import SalesforceToolSpec
# Initialize the tool with your Salesforce credentials and other relevant details
sf = SalesforceToolSpec(
username=sf_username,
password=sf_password,
consumer_key=sf_consumer_key,
consumer_secret=sf_consumer_secret,
domain="test",
)
agent = OpenAIAgent.from_tools(
sf.to_tool_list(),
llm=llm,
verbose=True,
system_prompt=system_prompt,
memory=memory,
)
agent.chat("List 3 Accounts in Salesforce")
agent.chat("Provide information on a customer account John Doe")
execute_sosl
- Returns the result of a Salesforce search as a dict decoded from the Salesforce response JSON payload.
execute_soql
- Returns the full set of results for the query
. The returned dict is the decoded JSON payload from the final call to Salesforce, but with the totalSize
field representing the full number of results retrieved and the records
list representing the full list of records retrieved.
This loader is designed to be used as a way to load data as a Tool in a Agent.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_tools_salesforce-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_salesforce-0.3.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 289a247e92f540046f3d2d2c2028b2fa75a5678c71a151f9c5bc4c5920d24858 |
|
MD5 | 3bcd451a9e5c9df5d3bee20978cccbeb |
|
BLAKE2b-256 | d69dd778129d83dfadc2834225848a3a1ac1c871c602a4687b167be2e53aef07 |
File details
Details for the file llama_index_tools_salesforce-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_salesforce-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3daa7c25ed4fad11cbbda1d02811622689b8e6baa787e21537692a9f3bdc3100 |
|
MD5 | 830097b307096614981806c84622d1b7 |
|
BLAKE2b-256 | 735f9ec16e062cfd418960992d76430bfe85dbf6184300523b781ea45719f66a |