feat: solution for 'Экзамен: Самокорректирующийся агент'

This commit is contained in:
2026-06-28 12:46:52 +03:00
parent 7dd5a51872
commit f5594c25c5
3 changed files with 47 additions and 76 deletions
+9
View File
@@ -0,0 +1,9 @@
from typing import TypedDict, Optional
class AgentState(TypedDict):
task: str
result: str
attempts: int
status: str # pending | success | failed | max_attempts
error: Optional[str]
max_attempts: int