What problem does it solve?
Building AI chat applications requires orchestrating UI, API calls, streaming responses, and session management across components. This Skill provides a modular chat-helper SDK that centralizes agent, session, and message workflows to accelerate development and ensure consistent behavior.
Core Features & Use Cases
- Modular architecture: separate agent, session, message, and http modules with clear boundaries.
- Streaming support: handle streaming responses to render AI messages in real time.
- UI integration: seamless cooperation with bk-chat-x to build end-to-end AI chat experiences.
- Use Case: quickly prototype a multi-user chat assistant by wiring an HTTP backend to agent.chat and managing sessions.
Quick Start
- Install the SDK: pnpm add @blueking/chat-helper
- Initialize with a minimal configuration: use useChatHelper with requestData.urlPrefix and optional interceptors (see references/api-reference.md)
- Start a simple flow: agent.getAgentInfo(), session.getSessions(), and agent.chat("hello", session.current.value?.sessionCode || "default")