From 9f51411c478893ea68d9a621d9c9b7ebf6e87d11 Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Sat, 8 Mar 2025 20:26:49 -0800 Subject: [PATCH] ire agent --- docs/swarms/agents/iterative_agent.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/swarms/agents/iterative_agent.md b/docs/swarms/agents/iterative_agent.md index 73bdc25d..94916601 100644 --- a/docs/swarms/agents/iterative_agent.md +++ b/docs/swarms/agents/iterative_agent.md @@ -1,9 +1,32 @@ # Iterative Reflective Expansion (IRE) Algorithm Documentation -## Overview - The Iterative Reflective Expansion (IRE) Algorithm is a sophisticated reasoning framework that employs iterative hypothesis generation, simulation, and refinement to solve complex problems. It leverages a multi-step approach where an AI agent generates initial solution paths, evaluates their effectiveness through simulation, reflects on errors, and dynamically revises reasoning strategies. Through continuous cycles of hypothesis testing and meta-cognitive reflection, the algorithm progressively converges on optimal solutions by learning from both successful and unsuccessful reasoning attempts. + +## Architecture + +``` +graph TD + Problem_Input["🧩 Problem Input"] --> Generate_Hypotheses + Generate_Hypotheses["Generate Initial Hypotheses"] --> Simulate + subgraph Iterative Reflective Expansion Loop + Simulate["Simulate Reasoning Paths"] --> Evaluate + Evaluate["Evaluate Outcomes"] --> Reflect{Is solution satisfactory?} + Reflect -->|No, issues found| Meta_Reflect + Reflect -->|Yes| Promising + Meta_Reflect["Meta-Cognitive Reflection"] --> Revise_Paths + Meta_Reflect --> Memory[(Reasoning Memory)] + Meta_Reflect --> Memory + Revise_Paths["Revise Paths Based on Feedback"] --> Expand_Paths + Meta_Reflect --> Revise_Path + Revise_Path["Revise Paths"] --> Expand_Paths + Expand_Paths["Iterative Expansion & Pruning"] --> Simulate + end + Promising["Promising Paths Selected"] --> Memory + Memory["Memory Integration"] --> Synthesize + Synthesize["Synthesize Final Solution"] --> Final["Final Solution ✅"] +```  + ## Workflow 1. Generate initial hypotheses