Learn how to monitor, debug, and optimize tool execution in Prisme.ai agents using Activity tracking and event management
Request Initiation
tool.request.initiated
tool.parameter.validation.started
Parameter Validation
tool.parameter.validation.completed
tool.parameter.validation.failed
(if issues occur)Execution
tool.execution.started
tool.execution.step.completed
(for multi-step tools)tool.execution.completed
Result Processing
tool.result.processing.started
tool.result.processing.completed
Response Delivery
tool.response.delivery.started
tool.response.delivery.completed
Tool Request Events
tool.request.initiated
: Initial request for tool executiontool.request.validated
: Request passed preliminary validationtool.request.rejected
: Request failed preliminary checksExecution Events
tool.execution.started
: Tool execution has beguntool.execution.step.completed
: A step in multi-step execution completedtool.execution.completed
: Tool execution finished successfullytool.execution.failed
: Tool execution encountered an errorResult Events
tool.result.generated
: Raw results from tool executiontool.result.processed
: Results after formatting and preparationtool.result.delivered
: Final delivery to the requesterError Events
tool.error.validation
: Error during parameter validationtool.error.execution
: Error during tool executiontool.error.timeout
: Execution exceeded allocated timetool.error.resource
: Resource limit exceededIdentify the Issue
Trace Execution Flow
Examine Event Details
Compare with Successful Executions
Implement and Verify Fixes
Latency Analysis
Error Rate Tracking
Usage Pattern Analysis
Custom Event Types
custom.finance-assistant.calculation.started
custom.support-agent.ticket.created
custom.inventory-tool.stock.checked
Emitting Custom Events
Event Payload Best Practices
Set Up Real-Time Dashboards
Configure Alerts
Implement Event Subscribers
Monitor Service Health
Develop an Event Strategy
Implement Effective Filtering
Design for Scalability
Access the Activity Log
Monitor Tool Usage
Analyze Conversation Flows
Export Activity Data