Skip to content

Commit

Permalink
fix output titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Sep 25, 2024
1 parent 1e3ddec commit 60b7c00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion autogpt_platform/backend/backend/blocks/github/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ class IssueItem(TypedDict):
title: str
url: str

issue: IssueItem = SchemaField(description="Issues with their title and URL")
issue: IssueItem = SchemaField(
title="Issue", description="Issues with their title and URL"
)
error: str = SchemaField(description="Error message if listing issues failed")

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class PRItem(TypedDict):
title: str
url: str

pull_request: PRItem = SchemaField(description="PRs with their title and URL")
pull_request: PRItem = SchemaField(
title="Pull Request", description="PRs with their title and URL"
)
error: str = SchemaField(description="Error message if listing issues failed")

def __init__(self):
Expand Down Expand Up @@ -513,7 +515,8 @@ class ReviewerItem(TypedDict):
url: str

reviewer: ReviewerItem = SchemaField(
description="Reviewers with their username and profile URL"
title="Reviewer",
description="Reviewers with their username and profile URL",
)
error: str = SchemaField(
description="Error message if listing reviewers failed"
Expand Down
10 changes: 6 additions & 4 deletions autogpt_platform/backend/backend/blocks/github/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TagItem(TypedDict):
url: str

tag: TagItem = SchemaField(
description="Tags with their name and file tree browser URL"
title="Tag", description="Tags with their name and file tree browser URL"
)
error: str = SchemaField(description="Error message if listing tags failed")

Expand Down Expand Up @@ -120,7 +120,8 @@ class BranchItem(TypedDict):
url: str

branch: BranchItem = SchemaField(
description="Branches with their name and file tree browser URL"
title="Branch",
description="Branches with their name and file tree browser URL",
)
error: str = SchemaField(description="Error message if listing branches failed")

Expand Down Expand Up @@ -209,7 +210,7 @@ class DiscussionItem(TypedDict):
url: str

discussion: DiscussionItem = SchemaField(
description="Discussions with their title and URL"
title="Discussion", description="Discussions with their title and URL"
)
error: str = SchemaField(
description="Error message if listing discussions failed"
Expand Down Expand Up @@ -316,7 +317,8 @@ class ReleaseItem(TypedDict):
url: str

release: ReleaseItem = SchemaField(
description="Releases with their name and file tree browser URL"
title="Release",
description="Releases with their name and file tree browser URL",
)
error: str = SchemaField(description="Error message if listing releases failed")

Expand Down

0 comments on commit 60b7c00

Please sign in to comment.