feat: solution for 'Экзамен: Планирующий агент'

This commit is contained in:
2026-06-28 13:27:03 +03:00
parent f5594c25c5
commit ca8ca9db6d
8 changed files with 132 additions and 123 deletions
+5 -7
View File
@@ -1,9 +1,7 @@
from typing import TypedDict, Optional
from typing import TypedDict, List, Optional
class AgentState(TypedDict):
class PlanningState(TypedDict):
task: str
result: str
attempts: int
status: str # pending | success | failed | max_attempts
error: Optional[str]
max_attempts: int
plan: Optional[List[str]]
current_step: int
results: List[str]