-
Notifications
You must be signed in to change notification settings - Fork 78
contributing the Mastodon toolkit #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
evantahler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this file (also the PR you recently merged will make sure this won't be added to future toolkits, so thanks!)
| version = "0.1.0" | ||
| description = "Allow the agent to interact with a Mastodon server" | ||
| requires-python = ">=3.10" | ||
| dependencies = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget to add httpx as a dependency!
| ) | ||
| async def post_status( | ||
| context: ToolContext, | ||
| status: Annotated[str, "The status to post"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: might be worth mentioning that a 'status' is the text content of a user's post. Idk, worth a shot! Personally I thought status was 'online', 'offline', etc., so adding that context could be helpful.
| ] = 20, | ||
| ) -> Annotated[dict, "The statuses from Mastodon"]: | ||
| """ | ||
| Search for recent statuses by keywords and phrases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would be a good place to explain the relationship between keywords & phrases. Are they AND'd, OR'd? Does it match if only one keyword matches, or does it need all?
Also, you mentioned that this toolkit used X as inspiration. X is one of our oldest toolkits, but I recall having the keywords/phrases was something I regretted because language models were really bad at understanding the difference between the two (I think the X toolkit might even be older than the eval framework!). It'd be super exciting to see if you're able to come up with a new & improved way to search for statuses
This adds the Mastodon toolkit to Arcade. It is intended to match the functionality of Arcade's existing X toolkit, offering similar tools