Skip to main content
Learn how to listen for and process real-time conversation events using the thesis-py SDK.

Setup

Install the required dependencies:
Create a .env file:

Create and setup your API key

Get your Thesis.io API key


Initialize the client:

Basic Event Listener

Processing Event Data

Use the SDK utilities to extract structured data from events:

Error Handling

Add robust error handling with retries:

Complete Example