0
0
Prompt Engineering / GenAIml~12 mins

Agent architecture (observe, think, act) in Prompt Engineering / GenAI - Model Pipeline Trace

Choose your learning style9 modes available
Model Pipeline - Agent architecture (observe, think, act)

This agent architecture shows how an AI system works by observing its environment, thinking about what it sees, and then acting based on that thinking. It repeats this cycle to learn and improve.

Data Flow - 3 Stages
1Observe
1 environment state snapshotAgent senses or receives data from environment1 observation vector
Image pixels or sensor readings like temperature and position
2Think
1 observation vectorAgent processes observation to decide next action1 action decision vector
Neural network outputs probabilities for possible moves
3Act
1 action decision vectorAgent performs action in environmentEnvironment changes state
Robot moves forward or AI clicks a button
Training Trace - Epoch by Epoch
Loss
1.0 |****
0.8 |*** 
0.6 |**  
0.4 |*   
0.2 |*   
0.0 +----
     1 2 3 4 5 Epochs
EpochLoss ↓Accuracy ↑Observation
10.850.40Agent starts learning, loss is high, accuracy low
20.650.55Agent improves by better thinking and acting
30.450.70Agent learns to act more correctly
40.300.85Agent's decisions become more accurate
50.200.92Agent converges to good performance
Prediction Trace - 3 Layers
Layer 1: Observe
Layer 2: Think
Layer 3: Act
Model Quiz - 3 Questions
Test your understanding
What is the first step the agent takes in this architecture?
AObserve the environment
BThink about the action
CAct on the environment
DTrain the model
Key Insight
This agent architecture shows a simple but powerful cycle: first sensing the world, then deciding what to do, and finally acting. Training improves the agent's decisions by reducing mistakes over time.