Skip to main content

Heartbeat

Defined in the heartbeat module.
AI Agent Standalone heartbeat coordinator. Runs an Agent on a schedule and delivers results via callback. Does NOT add any params to the Agent class. Usage::

Constructor

Any
required
No description available.
str
default:"'hourly'"
No description available.
Optional[str]
No description available.
Optional[Callable]
No description available.
Union[str, Callable]
default:"'retry'"
No description available.
int
default:"3"
No description available.

Methods

start()

Start the heartbeat loop.

stop()

Stop the heartbeat loop.

is_running()

Instance method.

Source

View on GitHub

praisonaiagents/agent/heartbeat.py at line 45