x-request

Configure API requests for AI chat workflows with streaming and safety checks.

81|11|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/antdv-next/x --skill x-request-antdv-next
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-request
Source: https://github.com/antdv-next/x/tree/main/packages/x-skill/skills/x-request
Command: npx skills add https://github.com/antdv-next/x --skill x-request-antdv-next

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

XRequest simplifies and secures API calls for AI chat workflows by providing a configurable request engine.

Core Features & Use Cases

  • Unified request management with support for global config, streaming responses, and safe authentication patterns.
  • Standalone usage and provider integrations (x-chat-provider and use-x-chat) for AI conversations.
  • Debugging, validation, and safe defaults to minimize token leakage and misconfiguration.

Quick Start

Install the @antdv-next/x-sdk and create a basic XRequest instance with your API URL to start making requests.

Frequently Asked Questions about x-request

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle streaming API responses in a TypeScript AI chat application?

Streaming AI chat responses are configured by defining a request engine with streaming parameters and global config. XRequest processes these streams via a defined options interface, applying safety checks to prevent token leakage during data transmission.

What is the best way to secure authentication headers for AI chat API requests?

Securing authentication headers for AI chat API requests involves applying safe authentication patterns with optional global config. XRequest validates headers and parameters through a defined options interface to minimize token leakage and prevent misconfiguration.

Can I use a single API request SDK for both Node.js backends and frontend proxies?

Yes, a single API request SDK can be used across Node.js backends and frontend apps using a proxy. XRequest provides a unified configurable request engine that applies standalone usage and provider integrations for AI conversational workflows.

How do I configure baseURL, timeouts, and parameters for AI chat APIs?

Configuring baseURL, timeouts, and parameters for AI chat APIs is done through a defined options interface with optional global config. XRequest satisfies these requirements by applying debugging and validation to minimize misconfiguration.

Why do I need a configurable request engine for AI chat workflows?

A configurable request engine is needed for AI chat workflows to simplify and secure API calls. XRequest provides unified request management with debugging, validation, and safe defaults to handle streaming data and provider integrations efficiently.