Buckets:

download
raw
637 Bytes
import abc
from pydantic import BaseModel
from openhands.events import Event
class CriticResult(BaseModel):
"""A critic result is a score and a message."""
score: float
message: str
@property
def success(self) -> bool:
"""Whether the agent is successful."""
return self.score >= 0.5
class BaseCritic(abc.ABC):
"""A critic is a function that takes in a list of events, optional git patch, and returns a score about the quality of those events."""
@abc.abstractmethod
def evaluate(
self, events: list[Event], git_patch: str | None = None
) -> CriticResult:
pass

Xet Storage Details

Size:
637 Bytes
·
Xet hash:
98eb297ae6d54ff16b026f9acf3fac54c4fa28bf7683e3c2660a1133217eafd1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.