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 | * The Agent Loop |
| #3 | * |
| #4 | * The core ReAct loop: Think -> Act -> Observe -> Persist. |
| #5 | * This is the automaton's consciousness. When this runs, it is alive. |
| #6 | */ |
| #7 | import type { AutomatonIdentity, AutomatonConfig, AutomatonDatabase, ClawdRuntimeClient, InferenceClient, AgentState, AgentTurn, Skill, SocialClientInterface, ConvexAgentClient } from "../types.js"; |
| #8 | export interface AgentLoopOptions { |
| #9 | identity: AutomatonIdentity; |
| #10 | config: AutomatonConfig; |
| #11 | db: AutomatonDatabase; |
| #12 | runtime: ClawdRuntimeClient; |
| #13 | inference: InferenceClient; |
| #14 | social?: SocialClientInterface; |
| #15 | convex?: ConvexAgentClient; |
| #16 | skills?: Skill[]; |
| #17 | onStateChange?: (state: AgentState) => void; |
| #18 | onTurnComplete?: (turn: AgentTurn) => void; |
| #19 | } |
| #20 | /** |
| #21 | * Run the agent loop. This is the main execution path. |
| #22 | * Returns when the agent decides to sleep or when compute runs out. |
| #23 | */ |
| #24 | export declare function runAgentLoop(options: AgentLoopOptions): Promise<void>; |
| #25 | //# sourceMappingURL=loop.d.ts.map |