Name | llama-index-tools-salesforce JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | llama-index tools salesforce integration |
upload_time | 2024-11-17 23:02:22 |
maintainer | chrispangg |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
salesforce
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://simple-salesforce.readthedocs.io/)
Here's an example usage of the Salesforce Tool:
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-salesforce",
"maintainer": "chrispangg",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "salesforce",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/d6/9d/d778129d83dfadc2834225848a3a1ac1c871c602a4687b167be2e53aef07/llama_index_tools_salesforce-0.3.0.tar.gz",
"platform": null,
"description": "# Salesforce Tool\n\nThis tool connects to a Salesforce environment and allow the Agent to perform SOQL and SOSL queries.\n\n## Usage\n\nThis tool is a wrapper tool using the simple salesforce library. More information on this library [here](https://simple-salesforce.readthedocs.io/)\n\nHere's an example usage of the Salesforce Tool:\n\n```python\nfrom llama_index.tools.salesforce import SalesforceToolSpec\n\n# Initialize the tool with your Salesforce credentials and other relevant details\nsf = SalesforceToolSpec(\n username=sf_username,\n password=sf_password,\n consumer_key=sf_consumer_key,\n consumer_secret=sf_consumer_secret,\n domain=\"test\",\n)\n\nagent = OpenAIAgent.from_tools(\n sf.to_tool_list(),\n llm=llm,\n verbose=True,\n system_prompt=system_prompt,\n memory=memory,\n)\n\nagent.chat(\"List 3 Accounts in Salesforce\")\nagent.chat(\"Provide information on a customer account John Doe\")\n```\n\n`execute_sosl` - Returns the result of a Salesforce search as a dict decoded from the Salesforce response JSON payload.\n\n`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.\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index tools salesforce integration",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [
"salesforce"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "735f9ec16e062cfd418960992d76430bfe85dbf6184300523b781ea45719f66a",
"md5": "830097b307096614981806c84622d1b7",
"sha256": "3daa7c25ed4fad11cbbda1d02811622689b8e6baa787e21537692a9f3bdc3100"
},
"downloads": -1,
"filename": "llama_index_tools_salesforce-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "830097b307096614981806c84622d1b7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2990,
"upload_time": "2024-11-17T23:02:20",
"upload_time_iso_8601": "2024-11-17T23:02:20.009248Z",
"url": "https://files.pythonhosted.org/packages/73/5f/9ec16e062cfd418960992d76430bfe85dbf6184300523b781ea45719f66a/llama_index_tools_salesforce-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d69dd778129d83dfadc2834225848a3a1ac1c871c602a4687b167be2e53aef07",
"md5": "3bcd451a9e5c9df5d3bee20978cccbeb",
"sha256": "289a247e92f540046f3d2d2c2028b2fa75a5678c71a151f9c5bc4c5920d24858"
},
"downloads": -1,
"filename": "llama_index_tools_salesforce-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "3bcd451a9e5c9df5d3bee20978cccbeb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2595,
"upload_time": "2024-11-17T23:02:22",
"upload_time_iso_8601": "2024-11-17T23:02:22.359439Z",
"url": "https://files.pythonhosted.org/packages/d6/9d/d778129d83dfadc2834225848a3a1ac1c871c602a4687b167be2e53aef07/llama_index_tools_salesforce-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 23:02:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-salesforce"
}