# Training Agents 4: From reward functions to environments.

**Published:** September 11, 2026
**Author:** Hugging Face
**Source:** YouTube — Hugging Face
**Language:** en-US
**HTML:** https://aiqazaqstan.com/en/articles/training-agents-4-from-reward-functions-to-environments

Training Agents, Session 4: from reward functions to environments. In this live session, the reward stops being a function and becomes a place the agent acts in. In Session 3 the model answered once and a Python function scored it. Today the model runs a loop: open a file, run a…

> From the original source: **YouTube — Hugging Face**
> [Read full article at YouTube — Hugging Face](https://www.youtube.com/watch?v=nJV3yUuz6DU)

**Tags:** #Hugging Face #YouTube

---

*AI Qazaqstan — non-commercial informational portal about AI in Kazakhstan. Machine translations and summaries are AI-generated.*