Skip to main content
The StateBase Python SDK is the recommended way to integrate with our infrastructure. It is designed to be lightweight with minimal dependencies.

Installation

Initialization

Sessions

Create or Resume

Get Context (Consolidated)

The get_context call is optimized for agent prompts. It fetches State, Memories, and Turns in a single low-latency call.

Update State

Memory

Manual Injection

Clean Up

Always close the client if you are not using a context manager.