arcade-mcp/toolkits
Sam Partee bebfcab1e9
Add lookup_tweet_by_id to X Toolkit (#165)
This PR introduces the `lookup_tweet_by_id` tool to the X toolkit,
enabling users to retrieve tweet details by tweet ID. This enhancement
extends the toolkit's capabilities, allowing for more comprehensive
interactions with the X (Twitter) API.

**Key Changes:**

- **Added `lookup_tweet_by_id` Tool:**
- Implemented the `lookup_tweet_by_id` function in `tools/tweets.py`,
which allows users to fetch tweet information using a tweet ID.
- Included error handling for API response codes and expanded URLs in
tweets to assist language models in avoiding hallucinations due to
shortened URLs.

- **Enhanced Toolkit Structure:**
- Added several configuration files to the X toolkit to establish a
standardized project structure, which in the future will be generated by
`arcade new`. These include:
- `.pre-commit-config.yaml`: Defines pre-commit hooks for code quality
checks.
    - `.ruff.toml`: Configuration for the Ruff linter.
    - `LICENSE`: MIT License file for the toolkit.
- `Makefile`: Contains common commands for building, testing, and
linting the toolkit.

- **Updated Makefile:**
- Added `make check-toolkits` command to the top-level `Makefile`. This
command runs code quality tools for each toolkit that contains a
`Makefile`.

**Additional Notes:**

- **Tests:**
- Added unit tests for the new `lookup_tweet_by_id` tool in
`tests/test_tweets.py`.
- Included tests for the user lookup functionality in
`tests/test_users.py`.

- **Linting and Code Quality:**
- Configured pre-commit hooks and Ruff linter to enforce code standards.
- Updated the `pyproject.toml` file with development dependencies for
testing and linting.

-

---------

Co-authored-by: Eric Gustin <eric@arcade-ai.com>
2024-11-27 17:07:12 -08:00
..
code_sandbox Add Code Sandbox Tools (#114) 2024-11-15 13:29:52 -08:00
github Add list stargazers tool (#130) 2024-10-30 18:13:36 -07:00
google Add Gmail Thread Tools (#159) 2024-11-20 11:26:09 -08:00
linkedin Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00
math Random int and random float tools (#148) 2024-11-06 09:28:05 -08:00
search Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00
slack Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00
spotify Add examples (#136) 2024-11-06 11:02:41 -08:00
web Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00
x Add lookup_tweet_by_id to X Toolkit (#165) 2024-11-27 17:07:12 -08:00
zoom Remove arcade.core from all examples (#121) 2024-10-24 17:08:04 -07:00