graph LR
N["AiAgentExecutor
Node"]
N -->|1. Parse Config
agentId, modelChoice| P["Configuration
Parser"]
P -->|2. Extract Context
from InputData| C["Context
Builder"]
C -->|3. Call Invoker| I["IAgentInvoker
Interface"]
I -->|4. Invoke Agent| O["OctopusAgent
Invoker"]
O -->|5. Reflection
GetService| D["Octopus
Service"]
D -->|6. Query DB| DB["Octopus
DB"]
DB -->|Agent Config| D
D -->|7. Build LLM
Request| L["LLM API
OpenAI/Claude"]
L -->|8. Generate
Response| D
D -->|9. Return
Response| O
O -->|10. Map to Result| R["Invocation
Result"]
R -->|11. Output Data| E["Next Executor"]
style N fill:#9e6a03,stroke:#fb8500,color:#c9d1d9
style P fill:#9e6a03,stroke:#fb8500,color:#c9d1d9
style C fill:#9e6a03,stroke:#fb8500,color:#c9d1d9
style I fill:#9e6a03,stroke:#fb8500,color:#c9d1d9
style O fill:#ae3f6e,stroke:#f97583,color:#c9d1d9
style D fill:#ae3f6e,stroke:#f97583,color:#c9d1d9
style DB fill:#1158c7,stroke:#58a6ff,color:#c9d1d9
style L fill:#ae3f6e,stroke:#f97583,color:#c9d1d9
style R fill:#9e6a03,stroke:#fb8500,color:#c9d1d9
style E fill:#9e6a03,stroke:#fb8500,color:#c9d1d9