feat(examples): add Xquik tools example#1289
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis PR adds a new example: a VoltAgent research agent wired with Xquik REST API tools (search posts, get post, get user, get user posts, trends), agent/server setup, package/tsconfig, env template, and documentation; it also registers the example in the examples index. ChangesXquik Research Agent Example
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
omeraplak
left a comment
There was a problem hiding this comment.
Thank you so much @kriptoburak !
PR Checklist
Please check if your PR fulfills the following requirements:
Bugs / Features
What is the current behavior?
VoltAgent has external API examples such as Tavily search, but no example showing how to expose public X/Twitter research tools from Xquik as typed VoltAgent tools.
What is the new behavior?
Adds
examples/with-xquik-tools, a private example package with typed tools for Xquik public REST API reads:The example follows the existing example package structure, documents required environment variables, and adds the example to
examples/README.md.fixes: none
Notes for reviewers
No changeset is included because this only adds a private example package and does not change a published package.
Validation run:
pnpm install --frozen-lockfile --ignore-scripts --filter voltagent-example-with-xquik-tools...pnpm exec biome check examples/with-xquik-tools examples/README.md pnpm-lock.yamlpnpm --filter voltagent-example-with-xquik-tools buildgit diff --checkXquik endpoint paths, query parameters, and
xquik-api-contract: 2026-04-29were checked against the Xquik OpenAPI source before opening this PR.Summary by cubic
Adds
examples/with-xquik-tools, an example that exposes Xquik public X/Twitter endpoints as typed VoltAgent tools. Lets agents search posts, look up posts and users, fetch user posts, and get trends.examples/with-xquik-toolswith tools: search posts, get post, get user, get user posts, get trends.x-api-keyandxquik-api-contract: 2026-04-29, plus a 20s request timeout.xquik-research-agentusingopenai/gpt-4o-minivia@voltagent/server-hono..env.exampleincluded; added toexamples/README.md. RequiresOPENAI_API_KEY,XQUIK_API_KEY, optionalXQUIK_BASE_URL. Added descriptive tool docstrings.Written for commit 5ef4be9. Summary will update on new commits. Review in cubic
Summary by CodeRabbit
New Features
Documentation
Chores