Is this not an Abort Signal in Mastra Studio? Stop Execution
I'm trying to understand what messages are emitted when stopping the Agent’s process after submitting a request.
When I click the stop button, I get an error (see attachment).
Is this correct? but not an Abort signal something?
So,
What I want to achieve is to detect the abort signal so that I can handle it properly.
I also tested the TokenLimiterProcessor with the following configuration:
new TokenLimiterProcessor({
limit: Number(process.env?.TOKEN_LIMIT ?? '200000'),
strategy: 'abort',
countMode: 'cumulative',
})
When the token limit is reached, the response returns a message of type "tripwire":
data: {
"type": "tripwire",
"payload": {
"tripwireReason": "Token limit of 100 exceeded (current: 215)"
}
}

1 Reply
here's the dependencies:
"mastra": "0.18.6",
"@mastra/core": "0.24.4",
then after, I want to integrate this in CopilotKit, but it seems, I am not able to get the response "tripWire" from copilotKit Runtime. 🤔
Please share any additional information you might have about this. Thank you.