Skip to main content

golem-sdk

Python SDK for Golem extensions (channels, providers, and other long-running processes).

Install from PyPI:

uv add golem-agent-sdk

Or from this directory:

uv sync --dev

Import as golem. The wire protocol lives in Golem: docs/extensions.md.

from golem import Client, Extension, Provider

client = Client.from_env()
client.wait_ready()
text = client.send(conversation_id, "telegram", "hello")

post_turn and stream_turn expose the same flow as SSE events (log, done, error).

A provider extension binds a loopback callback, registers, and heartbeats:

from golem import Extension, Message, Provider

class Echo(Provider):
    def chat(self, model, messages, tools=None) -> Message:
        return Message(role="assistant", content=messages[-1].content)

Extension.from_env("golem-echo").provider("echo", Echo()).run()

task() runs your own loop (a channel). capability() registers kinds Golem does not call.

Develop

uv sync --dev
uv run pytest

Release files for golem-agent-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for golem-agent-sdk 0.1.0
File Size Uploaded
golem_agent_sdk-0.1.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for golem-agent-sdk 0.1.0
File Interpreter ABI Platform
golem_agent_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / golem_agent_sdk-0.1.0.tar.gz

Download URL golem_agent_sdk-0.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5e3c18a5c63690442239fae2fc6f050a68a75eea1fa7fade9b11701fffa0ce80
BLAKE2b-256 checksum
How to use checksums
60b678ee20545ea6d307bb23a0d0c2465461916cafbb00a5bc2baf26068d90ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / golem_agent_sdk-0.1.0-py3-none-any.whl

Download URL golem_agent_sdk-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96c85f4b9736974ba1b2fd01e9021acbdfb186bdb7b367e91bbb87c7b4b0e5ae
BLAKE2b-256 checksum
How to use checksums
d56cd66ae5d571a785fc3dd43d496a693ba2985b74eb5e9ff8eb8dfa5642bb36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page