Make starred = True by default in Github tool (#227)

`starred` is a required argument of the
`arcade_github.activity.set_starred` tool, but when it is not provided
in the tool call, the engine is somehow passing it with a falsy value,
instead of raising an error. the falsy value makes the tool unstar a
repo by default, which is not the desired behavior.

we're setting the `starred` arg to True in the tool interface to prevent
that.
This commit is contained in:
Renato Byrro 2025-01-24 13:50:30 -08:00 committed by GitHub
parent e78ff00831
commit aa0cd02fe9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ async def set_starred(
context: ToolContext,
owner: Annotated[str, "The owner of the repository"],
name: Annotated[str, "The name of the repository"],
starred: Annotated[bool, "Whether to star the repository or not"],
starred: Annotated[bool, "Whether to star the repository or not"] = True,
) -> Annotated[
str, "A message indicating whether the repository was successfully starred or unstarred"
]: