def problem_statement_from_simplified_input(
    *, input: str, type: Literal["text", "text_file", "github_issue"]
) -> ProblemStatementConfig:
    """Get a problem statement from an `input` string and a `type`.

    Args:
        input: Url/path/text
        type: The type of problem statement
    """
    if type == "text":
        return TextProblemStatement(text=input)
    elif type == "text_file":
        return FileProblemStatement(path=Path(input))
    elif type == "github_issue":
        return GithubIssue(github_url=input)
    else:
        msg = f"Unknown problem statement type: {type}"
        raise ValueError(msg)
Get a problem statement from an `input` string and a `type`.

    Args:
        input: Url/path/text
        type: The type of problem statement
    
sweagent/agent/problem_statement.py