Debugging
Debug Logging
LOG_LEVEL=debugDebugging Logical Conditions
// Listen to condition evaluation events
import { AgentEvents } from 'mindedjs';
agent.on(AgentEvents.ON_LOGICAL_CONDITION, async ({ edge, state, condition }) => {
console.log('[Debug] Evaluating condition:', condition);
console.log('[Debug] Current memory:', state.memory);
});
agent.on(AgentEvents.ON_LOGICAL_CONDITION_RESULT, async ({ condition, result, executionTimeMs }) => {
console.log('[Debug] Result:', result);
console.log('[Debug] Execution time:', executionTimeMs, 'ms');
});LLM Debug Callback Handler
Using the LLM Debug Callback Handler
Advanced Usage - Custom Debug Handler
Last updated