Aller directement au contenu principal

openhands.resolver.interfaces.issue_definitions

ServiceContextPR Objects

class ServiceContextPR(ServiceContext)

guess_success

def guess_success(
issue: Issue,
history: list[Event],
git_patch: str | None = None) -> tuple[bool, None | list[bool], str]

Guess if the issue is fixed based on the history, issue description and git patch.

Arguments:

  • issue - The issue to check
  • history - The agent's history
  • git_patch - Optional git patch showing the changes made

get_instruction

def get_instruction(
issue: Issue,
prompt_template: str,
repo_instruction: str | None = None) -> tuple[str, list[str]]

Generate instruction for the agent.

ServiceContextIssue Objects

class ServiceContextIssue(ServiceContext)

get_instruction

def get_instruction(
issue: Issue,
prompt_template: str,
repo_instruction: str | None = None) -> tuple[str, list[str]]

Generate instruction for the agent.

guess_success

def guess_success(
issue: Issue,
history: list[Event],
git_patch: str | None = None) -> tuple[bool, None | list[bool], str]

Guess if the issue is fixed based on the history and the issue description.

Arguments:

  • issue - The issue to check
  • history - The agent's history
  • git_patch - Optional git patch showing the changes made