mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: restore dev retry logic and add class constants
- Restore simple dev retry flow (no AsyncRetrying wrapper) - Add EMPTY_OUTPUT_RETRY_* class constants for test compatibility
This commit is contained in:
@@ -100,6 +100,10 @@ USER_INTERRUPTION_MESSAGE = (
|
||||
|
||||
|
||||
class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
||||
EMPTY_OUTPUT_RETRY_ATTEMPTS = 3
|
||||
EMPTY_OUTPUT_RETRY_WAIT_MIN_S = 1
|
||||
EMPTY_OUTPUT_RETRY_WAIT_MAX_S = 4
|
||||
|
||||
def _get_persona_custom_error_message(self) -> str | None:
|
||||
"""Read persona-level custom error message from event extras when available."""
|
||||
event = getattr(self.run_context.context, "event", None)
|
||||
|
||||
Reference in New Issue
Block a user