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.3.0.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.3.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.3.0.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.3.0.tar.gz
Algorithm Hash digest
SHA256 f655e1df25117c23aad900e42d61469a13f5010e4cd236b3b8d0191c8c9b15cd
MD5 61a516bdff2d4f6571ca846acd01900e
BLAKE2b-256 607c310ed5e06283332c76fe6a1b50f5a21248029fa7dbb21477579f393c4946

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.3.0-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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9d9ec87610ef0d67fa576706f28b84ea3213026b441a3d3bb4b81a1d3453ea
MD5 4cb76e692fa4dbd6e01c67438eec3f71
BLAKE2b-256 f7b158996b3e8db51518fa11f55153f484ba91ad111d2b14eef3ce7231e03a95

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