resolver_output.py 454 B

1234567891011121314151617181920
  1. from typing import Any
  2. from litellm import BaseModel
  3. from openhands.resolver.github_issue import GithubIssue
  4. class ResolverOutput(BaseModel):
  5. # NOTE: User-specified
  6. issue: GithubIssue
  7. issue_type: str
  8. instruction: str
  9. base_commit: str
  10. git_patch: str
  11. history: list[dict[str, Any]]
  12. metrics: dict[str, Any] | None
  13. success: bool
  14. comment_success: list[bool] | None
  15. success_explanation: str
  16. error: str | None