- class openssa.deprecated.ooda.ooda_loop.OODALoop(objective)¶
Bases:
object
- class Step(name, prompt_function)¶
Bases:
object
Represents a step in the OODA loop.
- Attributes
name (str): The name of the step. prompt_function (function): The function used to generate the prompt for the step. input_data: The input data for the step. output_data: The output data generated by the step.
- execute(objective, llm, history)¶
Executes the step by generating a prompt using the prompt function, getting a response from the LLM, and storing the output data.
- Args:
objective: The overall objective of the OODA loop. llm: The LLM (Language Learning Model) used to get the response. history: The history of previous prompts and responses.
- Returns:
The output data generated by the step.
- run(llm, history)¶