> For the complete documentation index, see [llms.txt](https://docs.dbnl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnl.com/v0.21.x/using-distributional/python-sdk/sdk-objects/testgenerationsession.md).

# TestGenerationSession

```python
class TestGenerationSession(DBNLObject):
    id: str
    project_id: str
    run_id: str
    status: Literal["PENDING", "RUNNING", "COMPLETED", "FAILED"]
    columns: Optional[list[dict[Literal["name"], str]]] = None
    failure: Optional[str] = None
    num_generated_tests: Optional[int] = None
```

## Supported Functions

[`dbnl.experimental.create_test_generation_session`](/v0.21.x/using-distributional/python-sdk/sdk-experimental-functions/create_test_generation_session.md)

[`dbnl.experimental.wait_for_test_generation_session`](/v0.21.x/using-distributional/python-sdk/sdk-experimental-functions/wait_for_test_generation_session.md)
