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.0.tar.gz (4.7 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.2.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_channel_heartbeat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 750f1f9070957fca83274fbbd14077b26f81bf4276813168a7db1e10515aea00
MD5 d048a87f963e242334694f24807a2e57
BLAKE2b-256 1f2749f7f872b61cb81a200b282caaeed0f24d5b8dfeb6a99b420d3e08b28a08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exoclaw_channel_heartbeat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_channel_heartbeat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f95cac7430b347ad8ee030bc96dbb91e80cb31817b955d83dd2ce16095d19d11
MD5 3ac847677f9cf96978f3115954bbf037
BLAKE2b-256 f3c826ceb0aa29e984530569d8ec75e123c45e1340e772d12db6bf0a985cf1d8

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