Skip to main content

NotebookSession

The run() method returns a NotebookSession object containing all executed code cells and their results:

CodeCell Properties

Each cell in session.cells represents one executed code block:

Accessing Results

Basic Usage

Checking Task Completion

When the agent calls done(), the result is stored in the namespace:

Getting All Outputs

Data Models

See the complete data model definitions in the CodeAgent views source code.