Salesforce
Salesforce工具规范 #
基类:EventBaseToolSpec
Salesforce 工具规范。
赋予智能体使用 simple_salesforce 与 Salesforce 交互的能力
workflows/handler.py 中的源代码llama_index/tools/salesforce/base.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
execute_sosl #
execute_sosl(search: str) -> str
返回 Salesforce 搜索结果作为从 Salesforce 响应 JSON 载荷解码得到的字典。
- search -- 完整格式化的SOSL搜索字符串,例如
FIND {Waldo}。
workflows/handler.py 中的源代码llama_index/tools/salesforce/base.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
execute_soql #
execute_soql(query: str) -> str
返回query的完整结果集。这是对query(...)和query_more(...)的便捷封装。
返回的字典是最终调用Salesforce的解码JSON有效载荷,但其中totalSize字段表示检索到的结果总数,records列表表示检索到的完整记录列表。
- query -- 发送至 Salesforce 的 SOQL 查询语句,例如 SELECT Id FROM Lead WHERE Email = "waldo@somewhere.com"。
workflows/handler.py 中的源代码llama_index/tools/salesforce/base.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
选项: 成员:- SalesforceToolSpec