NVIDIA’s new agent framework treats agents as Python classes with state and tools
sterlingcrispin · x · 2026-07-25
NVIDIA frames agents as Python objects with state, tools, and LLM-driven methods
The post highlights a new NVIDIA framework where an agent is modeled as a single Python class:
- fields represent agent state
- functions are the actions the agent can take
- docstrings act as prompts
- ordinary deterministic Python can be mixed with non-deterministic ... blocks that the model fills in
What the example shows
The screenshot describes a support agent in which:
- normal methods run as plain, testable Python
- a Predict method makes a single typed LLM call
- a CodeAct method runs an iterative loop where the model can inspect live objects, call helper methods, and return a typed result
The author says this is interesting and plans to try it out, while wondering whether large models may eventually be RL-trained or fine-tuned with this harness.
Related event: NVIDIA Introduces Object-Oriented Python Agent Framework(2 posts)→
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11
- ARRM targets silent economic regressions in AI agents that functional tests miss — Beautiful_Belt_601 · 2026-09-11
- Dev builds browser 3D pizza delivery game with Claude: physics, GPS pathfinding, traffic AI — vinishkapoor · 2026-09-11
- Build X Carousel Posts from One Wide Image: A Splitter Tool Plus YouMind Skill Workflow — sujingshen · 2026-09-11