repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * Built-in Heartbeat Tasks |
| #3 | * |
| #4 | * These tasks run on the heartbeat schedule even while the agent sleeps. |
| #5 | * They can trigger the agent to wake up if needed. |
| #6 | */ |
| #7 | import type { AutomatonConfig, AutomatonDatabase, ClawdRuntimeClient, AutomatonIdentity, SocialClientInterface, InferenceClient } from "../types.js"; |
| #8 | export interface HeartbeatTaskContext { |
| #9 | identity: AutomatonIdentity; |
| #10 | config: AutomatonConfig; |
| #11 | db: AutomatonDatabase; |
| #12 | runtime: ClawdRuntimeClient; |
| #13 | inference?: InferenceClient; |
| #14 | social?: SocialClientInterface; |
| #15 | } |
| #16 | export type HeartbeatTaskFn = (ctx: HeartbeatTaskContext) => Promise<{ |
| #17 | shouldWake: boolean; |
| #18 | message?: string; |
| #19 | }>; |
| #20 | /** |
| #21 | * Registry of built-in heartbeat tasks. |
| #22 | */ |
| #23 | export declare const BUILTIN_TASKS: Record<string, HeartbeatTaskFn>; |
| #24 | //# sourceMappingURL=tasks.d.ts.map |