Logs an agent execution
The execution record to log
Queries executions with optional filters
Filter criteria
Array of matching executions
Gets the execution history for a specific agent
The agent ID
Maximum number of records to return
Array of executions for the agent
Gets the detailed execution trace for a specific execution
The execution ID
The execution trace, or null if not found
Gets execution statistics
Filter criteria
Aggregated statistics
Clears all execution records Useful for testing
Gets the total number of executions logged
Gets all executions (useful for debugging)
In-memory implementation of ExecutionAuditLog.
Stores execution records in memory for auditing and analytics. For production use, consider a database-backed implementation.
Example