Model Pipeline - Why tools extend agent capabilities
This pipeline shows how adding tools to an AI agent helps it do more tasks better. Tools give the agent extra skills beyond its basic knowledge.
Jump into concepts and practice - no test required
This pipeline shows how adding tools to an AI agent helps it do more tasks better. Tools give the agent extra skills beyond its basic knowledge.
Loss
0.8 |*****
0.6 |****
0.4 |***
0.3 |**
0.25|*
+------------
Epochs 1-5
| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.8 | 0.45 | Agent starts learning to select and use tools correctly. |
| 2 | 0.6 | 0.60 | Agent improves tool selection and response quality. |
| 3 | 0.4 | 0.75 | Agent reliably uses tools to enhance answers. |
| 4 | 0.3 | 0.85 | Agent responses become accurate and informative. |
| 5 | 0.25 | 0.90 | Training converges; agent effectively extends capabilities with tools. |
tools = {'calculator': lambda x, y: x + y}
agent_skills = ['chat']
# Agent uses calculator tool
result = tools['calculator'](3, 4)
print(f'Result: {result}')tools = {'search': lambda query: 'results for ' + query}
# Agent tries to use tool
output = tools['search'](123)
print(output)