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
- A visual guide to git blame shows who changed each line and why — _jaydeepkarale · 2026-07-25
- A Google AI Pro subscriber built an MCP server to use 50 unused Veo clips a month — Constantorture · 2026-07-25
- MCP Server Pitfall: Models Can't Tell Stale Data, Always Include Timestamps — Street_Inevitable_77 · 2026-07-25
- Claude Opus 5 builds a procedural Three.js RPG character from one prompt — majidmanzarpour · 2026-07-25
- OpenAI rolls out Voice Mode in Codex to all ChatGPT account holders — jxnlco · 2026-07-25
- AI-built Linux organizer ships in a day with 180 tests and three packages — PoleTV · 2026-07-25