Skip to content

leekHotline/simple-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReAct 思考行为模式

flowchart TD
    A[思考Reasoning🧠] --> B[行动Action🖐️]
    B --> C[观察Observation👀]
    C -.->|反馈循环🔁| A

Loading

流程图 从上到下 flowchart from top to down

flowchart TD
    User[“用户/老师<br>提出问题(出题)”]
    
    subgraph 组委会与规则 [“考试组委会与规则”]
        Framework[“组织者: LangChain等框架”]
        MCP[“个人工具规则: MCP”]
        A2A[“协作协议: A2A”]
    end
    
    subgraph 资料库 [“开卷考试的资料库”]
        VD[(“智能管理员<br>Vector Database”)]
        RAG_Process[“核心流程: RAG”]
    end
    
    User -- “传达指令<br>(Prompt Engineering)” --> AI_Student
    
    AI_Student -- “需要知识时查询” --> RAG_Process
    RAG_Process -- “检索相关片段” --> VD
    
    AI_Student -- “需要工具时调用” --> Tool_Calling
    Tool_Calling -- “遵循规则使用” --> MCP
    Tool_Calling -- “与其他AI协作” --> A2A
    
    Framework -- “协调与组装<br>所有组件” --> AI_Student
    Framework -- “接入与管理” --> 资料库
    Framework -- “定义与调度” --> Tool_Calling
    
    style AI_Student fill:#e1f5fe
    style RAG_Process fill:#f3e5f5
    style Framework fill:#fff3e0
Loading

认知金字塔 Re-act(思考行动观察)其实就是简单版的OODA循环 把决策和判断浓缩为了思考

flowchart TD
    subgraph 认知层次金字塔
        direction BT
        
        subgraph 高级认知 [完整认知循环]
            A1[感知观察] --> 
            A2[深度理解] -->
            A3[多步推理] -->
            A4[理性决策] -->
            A5[计划行动] --> A1
            
            style 高级认知 fill:#e8f5e8
        end
        
        subgraph 中级认知 [模式识别反应]
            B1[感知模式] --> 
            B2[快速匹配] --> 
            B3[习惯反应] --> B1
            
            style 中级认知 fill:#fff3e0
        end
        
        subgraph 基础认知 [条件反射]
            C1[刺激感知] --> 
            C2[自动反应] --> C1
            
            style 基础认知 fill:#e1f5fe
        end
    end

    A5 -- 高度熟练后 --> B3
    B3 -- 重复练习后 --> C2

    C2 -- 学习 --> B1
    B3 -- 学习 --> A1
    
Loading
graph TB
    A["AI Agent需求"] --> B{"需要外部能力"}
    
    B --> C["传统API方式"]
    B --> D["MCP/工具方式"]
    
    subgraph C_Group [传统API问题]
        C1["文档风格各异"]
        C2["调用方式不同"]
        C3["参数语义模糊"]
        C4["人类可读但AI难解析"]
    end
    
    C --> C_Group
    
    subgraph D_Group [MCP/工具优势]
        D1["结构化JSON Schema<br>标准化工具描述"]
        D2["统一协议通信调用工具"]
        D3["机器可读描述"]
        D4["自动发现机制"]
    end
    
    D --> D_Group
    
    E["开发者角色"] --> F{"提供工具方式"}
    F --> G["@tool装饰器<br>本地集成"]
    F --> H["MCP服务<br>公网开放"]
    
    I["最终效果"] --> J["AI Agent可稳定调用<br>标准化工具服务"]
    
    D_Group --> J
    G --> J
    H --> J
    
    %% 样式美化
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px
    classDef group fill:#e8f4f8,stroke:#3498db,stroke-width:2px
    classDef decision fill:#fcf3cf,stroke:#f39c12,stroke-width:2px
    
    class C_Group,D_Group group
    class B,F decision
Loading

About

简易助手 without magic, it's all engineering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages