AnyLlmUploadResults
Processes search results for uploading as an LLM document by AnyLlmUploadDocument so that a full text search can also be performed on the document after uploading.
python · Anything LLM
Source
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): try: args = demisto.args() # These lines are also in AnyLlmUploadText args["text"] = demisto.incident()["CustomFields"]["anythingllmsearchresults"] if args["text"] == "" or args["title"] == "": raise Exception("The title or text parameter was not provided") args["title"] += ".txt" return_results(fileResult(args["title"], args["text"])) execute_command("setIncident", {"customFields": {"anythingllmupload": json.dumps(args)}}) except Exception as ex: demisto.error(traceback.format_exc()) return_error(f"AnyLlmUploadResults: error is - {ex}") if __name__ in ("__main__", "__builtin__", "builtins"): main()
README
Processes search results for uploading as an LLM document by AnyLlmUploadDocument so that a full text search can also be performed on the document after uploading
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
Inputs
| Argument Name | Description |
|---|---|
| title | title of the LLM document |
| author | author of the LLM document |
| description | description of the LLM document |
| source | source of the LLM document |
Outputs
There are no outputs for this script.