-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.py
More file actions
31 lines (30 loc) · 737 Bytes
/
state.py
File metadata and controls
31 lines (30 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from __future__ import annotations
from typing import TypedDict, Optional
class AgentState(TypedDict):
# Input
issue_url: str
issue_number: int
issue_title: str
issue_body: str
repo_owner: str
repo_name: str
repo_path: str
branch_name: str
# Planning
action_plan: list
files_to_edit: list
repo_map: str
# Execution
messages: list
code_changes: list
# Testing
test_command: str
test_output: str
test_passed: bool
retry_count: int
max_retries: int
# Output
pr_url: Optional[str]
pr_number: Optional[int]
error: Optional[str]
total_tokens: int