| CPC H04L 63/1483 (2013.01) [G06F 40/284 (2020.01); G06F 40/40 (2020.01); H04L 63/1416 (2013.01); H04L 63/1425 (2013.01)] | 19 Claims |

|
1. A computer system comprising at least one hardware processor configured to analyze a target text formulated in a natural language, wherein analyzing the target text comprises executing a prompt manager communicatively coupled to a generative language module (GLM), wherein:
the GLM is configured to:
receive from the prompt manager a language model (LM) prompt formulated in the natural language, and
in response, output to the prompt manager a predicted token comprising a continuation of the received LM prompt; and
the prompt manager is configured to:
receive a logical prompt, the logical prompt including the target text and a code snippet comprising computer code for updating the LM prompt,
formulate the LM prompt according to the logical prompt, the LM prompt instructing the GLM to perform a text analysis task according to the target text and in response, to output a flag token,
in response to receiving the predicted token, initiate an execution of the code snippet to produce an updated LM prompt,
transmit the updated LM prompt to the GLM, and
formulate a reply message comprising a result of analyzing the target text, the reply message formulated according to an output of the GLM in response to the updated LM prompt.
|