AnyLlmUploadText
Processes text data for uploading as an LLM document by AnyLlmUploadDocument and 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() title = args.get("title", "") text = args.get("text", "") if title == "" or text == "": 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"AnyLlmUploadText: error - {ex}") if __name__ in ("__main__", "__builtin__", "builtins"): main()
README
Processes text data for uploading as an LLM document by AnyLlmUploadDocument and 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 |
|---|---|
| text | text content for the LLM document |
| 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.