Skip to main content

Periodic heartbeat channel for exoclaw

Project description

exoclaw-channel-heartbeat

Periodic heartbeat service that wakes the agent on a schedule to check for active tasks in HEARTBEAT.md.

Install

pip install exoclaw-channel-heartbeat

Usage

from pathlib import Path
from exoclaw_channel_heartbeat.service import HeartbeatService

heartbeat = HeartbeatService(
    workspace=Path("~/.nanobot/workspace").expanduser(),
    provider=provider,       # any exoclaw LLMProvider
    model="anthropic/claude-opus-4-5",
    on_execute=agent_loop.process_direct,   # called when tasks are found
    on_notify=send_to_user,                 # optional: deliver the result
    interval_s=30 * 60,
)

await heartbeat.start()

Each tick reads HEARTBEAT.md, asks the LLM via a structured tool call whether there are active tasks (skip / run), and only invokes on_execute when the decision is run.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoclaw_channel_heartbeat-0.2.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exoclaw_channel_heartbeat-0.2.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file exoclaw_channel_heartbeat-0.2.1.tar.gz.

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.2.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for exoclaw_channel_heartbeat-0.2.1.tar.gz
Algorithm Hash digest
SHA256 84c85690b09f7c073ee6e47ba390c69333667617b0b40d8756b6cfe5dcf78577
MD5 13b555d75bfc175eba34097cbd31384c
BLAKE2b-256 3659c6bc202e09d6dec1093a90d7c935a142afef698e8111de4a4c1aadf2189a

See more details on using hashes here.

File details

Details for the file exoclaw_channel_heartbeat-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for exoclaw_channel_heartbeat-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff549860aee8464ef44676bbe1f737763901033dc3b99c964a94891595c0b94
MD5 b08ac6cd8ff1cb569007cac582cc52be
BLAKE2b-256 2d0816cb0c5e99764ec9bbf2fb4a0ff911a7d9cd938335e4dc243a5ee0dced40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page