/** * Minimal agent state schema. * * The state column must NEVER contain: * - full embeddings * - conversation history * - tool call results * - memory snapshots * * Max size: 4KB per agent. */ export declare const ALLOWED_STATE_FIELDS: readonly ["lastToolUsed", "conversationTurnCount", "pendingToolCalls", "lastMemoryQueryTimestamp", "errorStreak", "lastSummaryId", "totalToolCalls", "lastErrorMessage"]; export type AllowedStateField = (typeof ALLOWED_STATE_FIELDS)[number]; export interface AgentStateSnapshot { lastToolUsed?: string; conversationTurnCount?: number; pendingToolCalls?: string[]; lastMemoryQueryTimestamp?: number; errorStreak?: number; lastSummaryId?: string; totalToolCalls?: number; lastErrorMessage?: string; } export declare function validateAgentState(state: Record): { valid: boolean; errors: string[]; sizeBytes: number; }; export declare function serializeMinimalState(state: AgentStateSnapshot): Record; //# sourceMappingURL=agent-state-schema.d.ts.map