Back to Glossary

Code as Policies

Robot LearningVision-LanguageSoftware

A paradigm where LLMs generate Python code that directly controls robots, rather than natural language plans. The LLM writes executable code calling robot APIs, enabling precise, loop-based behaviors difficult to express in natural language. Code as Policies naturally handles spatial reasoning (for loops over objects) and conditional logic.

Related terms