The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: Handle empty PR body in get_pull_request in Github utility (#26739)
Gor Hayrapetyanf97ac92f00c6
diff --git a/libs/community/langchain_community/utilities/github.py b/libs/community/langchain_community/utilities/github.pyindex a263953287..56426ca834 100644--- a/libs/community/langchain_community/utilities/github.py+++ b/libs/community/langchain_community/utilities/github.py@@ -492,7 +492,7 @@ class GitHubAPIWrapper(BaseModel):response_dict: Dict[str, str] = {}add_to_dict(response_dict, "title", pull.title)add_to_dict(response_dict, "number", str(pr_number))- add_to_dict(response_dict, "body", pull.body)+ add_to_dict(response_dict, "body", pull.body if pull.body else "")comments: List[str] = []page = 0