process_trace_update
Update the cognitive trace of an AI agent by processing the latest action, goal, and environment context to enable metacognitive monitoring and reasoning loop detection.
Instructions
Process a cognitive trace update from the agent (main monitoring function)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
current_context | No | Current environment context or state, in low dash format. Example: adding_product_item | |
goal | Yes | Current goal being pursued | |
last_action | Yes | Latest action name to be added to the accumulated action history | |
window_size | No | Size of the monitoring window |