OpenHands/openhands/resolver/resolver_output.py
Graham Neubig a753babb7a
Integrate OpenHands resolver into main repository (#4964)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Rohit Malhotra <rohitvinodmalhotra@gmail.com>
2024-11-14 09:45:46 -05:00

21 lines
454 B
Python

from typing import Any
from litellm import BaseModel
from openhands.resolver.github_issue import GithubIssue
class ResolverOutput(BaseModel):
# NOTE: User-specified
issue: GithubIssue
issue_type: str
instruction: str
base_commit: str
git_patch: str
history: list[dict[str, Any]]
metrics: dict[str, Any] | None
success: bool
comment_success: list[bool] | None
success_explanation: str
error: str | None