failed method
- AgentFailure failure
Marks the agent as failed.
Implementation
void failed(AgentFailure failure) {
_state = _AgentLifecycle.failed;
_isBuffering = false;
_error = failure;
notifyListeners();
}
Marks the agent as failed.
void failed(AgentFailure failure) {
_state = _AgentLifecycle.failed;
_isBuffering = false;
_error = failure;
notifyListeners();
}