We need a way to control skipping certain pipeline stages/nodes programmatically and in runtime.
Example of feature that relies on such mechanism in the former released version is - Deficient intel filtering #57
, which is working very good to skip the LLM Engine in the previous version.
We need it also for our feature Low Quality CVE
LangGraph supports it in the phase of building/compiling the pipeline, using graph.add_conditional_edges method, but i'm not sure if the routing_function of this method can get results of business logic saved to the message in the workflow.
According to my investigation, we can probably achieve that by manipulating AgentMorpheusEngineState instance' fields according to our needs in the nodes logic and then use it in order to bypass certain stages/nodes.
We need a way to control skipping certain pipeline stages/nodes programmatically and in runtime.
Example of feature that relies on such mechanism in the former released version is - Deficient intel filtering #57
, which is working very good to skip the LLM Engine in the previous version.
We need it also for our feature Low Quality CVE
LangGraph supports it in the phase of building/compiling the pipeline, using
graph.add_conditional_edgesmethod, but i'm not sure if therouting_functionof this method can get results of business logic saved to the message in the workflow.According to my investigation, we can probably achieve that by manipulating AgentMorpheusEngineState instance' fields according to our needs in the nodes logic and then use it in order to bypass certain stages/nodes.