/** * Agent core — the ReAct loop with market-aware context. * * Think → Act → Observe → Repeat. * * Every run starts with a fresh market snapshot so the agent sees * real numbers (ETH balance, gas price, fee balances, claim profitability). * The system prompt includes this data. The agent decides what to do. */ import type { ClawtomatonConfig, ClawtomatonIdentity } from '../types.js'; import { StateStore } from '../state/index.js'; import { MarketIntelligence } from '../market/index.js'; import { XmtpClient } from '../xmtp/client.js'; export declare class ClawtomatonAgent { private state; private config; private identity; private survivalMonitor; private market; private constitution; private running; private xmtpClient; private xmtpStarted; constructor(config: ClawtomatonConfig); /** * Run a single agent session — multiple ReAct turns until the agent * stops, runs out of gas budget, or hits MAX_TURNS_PER_RUN. */ run(externalInput?: string): Promise; /** * Record gas cost for a skill execution that produced a transaction. * Extracts txHash from metadata or result text, fetches receipt, records cost. */ private recordGasIfTxHash; /** * Handle persistent side effects of skill calls. */ private handleSkillSideEffects; /** * Call the LLM inference provider. */ private callInference; private callAnthropic; private callOpenRouter; getState(): StateStore; getIdentity(): ClawtomatonIdentity; isRunning(): boolean; getMarket(): MarketIntelligence; getXmtpClient(): XmtpClient | null; shutdown(): Promise; } //# sourceMappingURL=index.d.ts.map