OpenHands/openhands/resolver/resolver_output.py
Rohit Malhotra 252c70984c
[Resolver]: Rename success_explanation to result_explanation for better clarity (#5724)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
2024-12-21 01:31:05 +00:00

21 lines
453 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
result_explanation: str
error: str | None