class openssa.deprecated.ooda_rag.builtin_agents.Persona

Bases: object

USER = 'user'
SYSTEM = 'system'
ASSISTANT = 'assistant'
class openssa.deprecated.ooda_rag.builtin_agents.TaskAgent(llm: AnLLM, messages: List)

Bases: ABC

Abstract base class for all task agents.

abstract execute(task: str) str

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.AskUserAgent(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, ask_user_heuristic: str = '', conversation: ~typing.List | None = None)

Bases: TaskAgent

AskUserAgent helps to determine if user wants to provide additional information

execute(task: str = '') dict

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.AskUserAgentV2(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, ask_user_heuristic: str = '', conversation: ~typing.List | None = None)

Bases: TaskAgent

AskUserAgent helps to determine if user wants to provide additional information

execute(task: str = '') str

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.CommAgent(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, instruction: str = '')

Bases: TaskAgent

CommAgent helps update tone, voice, format and language of the assistant final response

execute(task: str = '') str

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.GoalAgent(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, conversation: ~typing.List | None = None)

Bases: TaskAgent

GoalAgent helps to determine problem statement from the conversation between user and SSA

execute(task: str = '') str

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.ContextValidator(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, conversation: ~typing.List | None = None, context: list | None = None)

Bases: TaskAgent

ContentValidatingAgent helps to determine whether the content is sufficient to answer the question

execute(task: str = '') dict

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.AnswerValidator(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, answer: str = '')

Bases: TaskAgent

AnswerValidator helps to determine whether the answer is complete

execute(task: str = '') bool

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.SynthesizingAgent(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, conversation: ~typing.List | None = None, context: list | None = None)

Bases: TaskAgent

SynthesizeAgent helps to synthesize answer

execute(task: str = '') dict

Execute the task agent with the given task.

class openssa.deprecated.ooda_rag.builtin_agents.OODAPlanAgent(llm: ~openssa.deprecated.utils.llms.AnLLM = <openssa.deprecated.utils.llms.OpenAILLM object>, conversation: ~typing.List | None = None)

Bases: TaskAgent

OODAPlanAgent helps to determine the OODA plan from the problem statement

execute(task: str = '') dict

Execute the task agent with the given task.