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
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
# 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 = FunctionAgent(
tools=sf.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("List 3 Accounts in Salesforce"))
print(await agent.run("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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_salesforce-0.4.1.tar.gz.
File metadata
- Download URL: llama_index_tools_salesforce-0.4.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3503ae6522db4d6d8320f0586e2e19045d90c12ef14727d1c3302f959125c360
|
|
| MD5 |
4203be4cb2010ccc93608769d3688e85
|
|
| BLAKE2b-256 |
0dac8ff80775d4d266363a044bfa2256448ee1b2f5e051efe4dbf9acd541b51c
|
File details
Details for the file llama_index_tools_salesforce-0.4.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_salesforce-0.4.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62ab1d9d8336231ec47d4836416368e04f841d65422b501da402f9c30c0fc5db
|
|
| MD5 |
1660ea3984d6344f29c4096b65eb76f2
|
|
| BLAKE2b-256 |
32829291545931992e8b744b961a95ace0f43515c3fe784ace4486067aa98abd
|