Timestep (Python)
Python bindings for the Timestep Agents SDK. See the root README.md for the full story; this file highlights Python-specific setup.
Install
pip install timestep
Prerequisites (Python)
OPENAI_API_KEY- PostgreSQL: Set
PG_CONNECTION_URI=postgresql://user:pass@host/db
Quick start
from timestep import run_agent, RunStateStore
from agents import Agent, Session
agent = Agent(model="gpt-4.1")
session = Session()
state_store = RunStateStore(agent=agent, session_id=await session._get_session_id())
result = await run_agent(agent, input_items, session, stream=False)
if result.interruptions:
await state_store.save(result.to_state())
Cross-language resume
Save in Python, load in TypeScript with the same session_id and RunStateStore.load().
Model routing
Use MultiModelProvider if you need OpenAI + Ollama routing:
from timestep import MultiModelProvider, MultiModelProviderMap, OllamaModelProvider
provider_map = MultiModelProviderMap()
provider_map.add_provider("ollama", OllamaModelProvider())
model_provider = MultiModelProvider(provider_map=provider_map)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
timestep-2026.0.57.tar.gz
(396.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
timestep-2026.0.57-py3-none-any.whl
(334.8 kB
view details)
File details
Details for the file timestep-2026.0.57.tar.gz.
File metadata
- Download URL: timestep-2026.0.57.tar.gz
- Upload date:
- Size: 396.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06b5d43d5bc89a3e70695665f8cc6ad820dd70cdc3fff66cc9360e87567935aa
|
|
| MD5 |
fc511ab5b897750e6c7bcd070b999416
|
|
| BLAKE2b-256 |
20baeafae083f15af76ae7a5633551190ff5fd0067748ab37e22d233f1be4293
|
File details
Details for the file timestep-2026.0.57-py3-none-any.whl.
File metadata
- Download URL: timestep-2026.0.57-py3-none-any.whl
- Upload date:
- Size: 334.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef79ad468d59dc81b6cee0e05e67b47a700597c998cf692d5e8622b30d7202e
|
|
| MD5 |
74ccc5f56d8159f2270d876642b63847
|
|
| BLAKE2b-256 |
11f9bd655b2db008eb5c8847893105e42dfa4f8b5b032d69ab229fbf5b6f85b8
|