mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
26 lines
687 B
Python
26 lines
687 B
Python
from dataclasses import dataclass, field
|
|
from typing import List, Tuple
|
|
|
|
from opendevin.plan import Plan
|
|
|
|
from opendevin.action import (
|
|
Action,
|
|
)
|
|
from opendevin.observation import (
|
|
Observation,
|
|
CmdOutputObservation,
|
|
)
|
|
|
|
|
|
@dataclass
|
|
class State:
|
|
plan: Plan
|
|
iteration: int = 0
|
|
# number of characters we have sent to and received from LLM so far for current task
|
|
num_of_chars: int = 0
|
|
background_commands_obs: List[CmdOutputObservation] = field(
|
|
default_factory=list)
|
|
history: List[Tuple[Action, Observation]] = field(default_factory=list)
|
|
updated_info: List[Tuple[Action, Observation]
|
|
] = field(default_factory=list)
|