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
- Dev training a guard model to block prompt injection, tool and memory poisoning — gnukeith · 2026-10-27
- Mirendil debuts Fern, its first model with a 10M-token context window — shayan_ · 2026-10-27
- SF 'Code Engineering' event picks up where 1,000-person harness engineering meetup left off — LangChain · 2026-10-27
- Prompt turns Claude Code into an iPhone backup forensics tool exposing 30-day 'deleted' photo copies — alex_verem · 2026-10-27
- Prompt turns Claude Code into a forensics tool finding deleted iPhone photos in backups — alex_verem · 2026-10-27
- Phones won't be mobile IDEs but control planes for agent fleets, argues Yuchen Jin — Yuchenj_UW · 2026-10-27