Toutes les nouveautés

Python SDK 1.44.0

Équipe

Overview

Added

  • Adds hatchet.streams, a client for durable streams: topics that store messages independent of any run, which readers can resume from a cursor. publish (async) returns once a message is stored, keeps a client's messages to a topic in call order, and batches publishes queued behind an in-flight request (batch_timeout holds a message to gather more). Payloads over 4 MiB are uploaded over REST, up to 64 MiB. subscribe (an async iterator) reads a topic from the oldest retained message or a cursor, resubscribing from the last event read when the connection drops. reset / aio_reset start new readers after the latest message or a given cursor, and topic_metadata / aio_topic_metadata describe a topic's retained messages.

Documentation for agents

The linked pages serve plain markdown for tools and agents. Full docs index: https://docs.hatchet.run/llms.txt

Setup and local development:

Core concepts:

Flow control:

Python SDK reference (overview: https://docs.hatchet.run/reference/python.md):

<!-- hatchet-agent-docs:end -->

Installation

Install the SDK using pip:

Shell
pip install hatchet-sdk
Shell

Or using poetry:

Shell
poetry add hatchet-sdk
Shell

Documentation

For detailed documentation, examples, and best practices, visit:

What's Changed?

  • feat: add optional read-only API tokens (#5152) by @grutt

  • feat(durable-streams): Go, Python, Ruby SDKs (#5348) by @juliusgeo

Source GitHub

Idées livrées

1