[feat] add XquikToolkit for read-only X/Twitter search (#3997)#3998
Open
kriptoburak wants to merge 2 commits intocamel-ai:masterfrom
Open
[feat] add XquikToolkit for read-only X/Twitter search (#3997)#3998kriptoburak wants to merge 2 commits intocamel-ai:masterfrom
kriptoburak wants to merge 2 commits intocamel-ai:masterfrom
Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds XquikToolkit with search_tweets, get_tweet, get_user_info, and get_trends. Complements TwitterToolkit (write-only) with the missing read capabilities — especially tweet search. Requires only XQUIK_API_KEY (1 env var) vs 4 OAuth credentials. No external dependencies (stdlib urllib). Fixes camel-ai#3997 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56c1a16 to
e98fd45
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds XquikToolkit — a read-only X/Twitter toolkit with tweet search, tweet lookup, user profiles, and trending topics via the Xquik REST API.
Fixes #3997
Problem
The existing
TwitterToolkithas 4 functions — all focused on write operations:create_tweet,delete_tweet,get_my_user_profile,get_user_by_usernameTweet search is completely missing. Agents cannot search for tweets about a topic, find what people are saying, or check trending discussions. This is the most basic read capability for any Twitter integration.
Solution
XquikToolkitprovides the missing read capabilities:search_tweetsget_tweetget_user_infoget_user_by_username(requires OAuth)get_trendsXQUIK_API_KEY)requests_oauthliburllib)Both toolkits can be used together:
XquikToolkitfor search/read,TwitterToolkitfor post/delete.Changes
camel/toolkits/xquik_toolkit.pyXquikToolkitclass with 4 toolscamel/toolkits/__init__.pyXquikToolkitPattern compliance
TwitterToolkitstructure exactly: standalone functions +BaseToolkitclass +@MCPServer()decorator@api_keys_requireddecorator for credential validationget_logger(__name__)for loggingChecklist
Built with Claude Code