/** * ATP OpenClaw Agent Wrapper * * Base class for OpenClaw agents with ATP identity and security */ import type { ATPClient } from 'atp-sdk'; import type { AgentMetadata, AgentContext } from './types.js'; export interface AtpOpenClawAgentConfig { /** Agent name */ name: string; /** Agent role */ role: string; /** ATP client */ atpClient: ATPClient; /** Base agent configuration (for LangChain/CrewAI agents) */ baseConfig?: any; /** Initial trust level */ trustLevel?: string; /** Policy profile */ policyProfile?: string; /** Enable auto trust updates */ autoUpdateTrust?: boolean; } /** * ATP-enhanced OpenClaw Agent * * Wraps any OpenClaw agent (LangChain, CrewAI, etc.) with ATP identity and security */ export declare class AtpOpenClawAgent { readonly name: string; readonly role: string; readonly atpClient: ATPClient; agentMeta?: AgentMetadata; private baseConfig; private autoUpdateTrust; private taskHistory; constructor(config: AtpOpenClawAgentConfig); /** * Initialize agent with ATP identity */ initialize(): Promise; /** * Get agent context for task execution */ getContext(taskId?: string): AgentContext; /** * Record successful action */ recordSuccess(actionType: string, metadata?: Record): Promise; /** * Record failed action */ recordFailure(actionType: string, error: Error, metadata?: Record): Promise; /** * Get current trust score */ getTrustScore(): number; /** * Get agent DID */ getDID(): string; /** * Check if agent has sufficient trust for an action */ hasSufficientTrust(requiredTrust: number): boolean; /** * Calculate trust delta based on recent history */ private calculateTrustDelta; /** * Check if trust should be updated (throttle updates) */ private shouldUpdateTrust; /** * Generate session ID */ private generateSessionId; } //# sourceMappingURL=atp-agent.d.ts.map