AnyLlmAddResultsConvo
Takes search results and adds them to the LLM conversation context. Adding these results to the context is done invisibly in XSOAR, but is present in the LLM and will display in the conversation when the workspace is re-entered.
- Type
- python
- Pack
- AnythingLLM
Source
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def main():
try:
inci = demisto.incident()["CustomFields"]
search_results = inci.get("anythingllmsearchresults", "")
if search_results != "":
execute_command("setIncident", {"customFields": {"anythingllmnewcontext": search_results}})
except Exception as ex:
demisto.error(traceback.format_exc())
return_error(f"AnyLlmAddResultsConvo: error is - {ex}")
if __name__ in ("__main__", "__builtin__", "builtins"):
main()
README
Takes search results and adds them to the LLM conversation context. Adding these results to the context is done invisibly in XSOAR, but is present in the LLM and will display in the conversation when the workspace is re-entered.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.