cloudbase-agent-ts

Deploy AI agents as AG-UI protocol HTTP services using TypeScript and Cloudbase.

Updated May 14, 2026
One-click install
npx skills add https://github.com/study-yang/Vieb-Coding-- --skill cloudbase-agent-ts-study-yang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-agent-ts
Source: https://github.com/study-yang/Vieb-Coding--/tree/main/%E5%BE%AE%E4%BF%A1%E5%B0%8F%E7%A8%8B%E5%BA%8F-%E5%BF%AB%E8%AE%B0/.codebuddy/skills/cloudbase-agent-ts
Command: npx skills add https://github.com/study-yang/Vieb-Coding-- --skill cloudbase-agent-ts-study-yang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @cloudbase/agent-server, @cloudbase/agent-adapter-langgraph, @cloudbase/agent-adapter-langchain, @cloudbase/agent-ui-miniprogram, @ag-ui/client, @langchain/langgraph, @cloudbase/node-sdk, and includes references (resource) components.

What problem does it solve? Building AI agents that stream responses to user interfaces requires implementing the AG-UI event protocol, wiring up adapters for frameworks like LangGraph or LangChain, and deploying HTTP servers with SSE streaming. This Skill provides the reference documentation and patterns to do all of that with the Cloudbase Agent TypeScript SDK. ## Core Features & Use Cases - Agent Server Deployment: Deploy AG-UI compatible agents as HTTP services with @cloudbase/agent-server, including CORS, logging, health checks, and OpenAI-compatible endpoints. - Framework Adapters: Wrap LangGraph StateGraph workflows with ClientStateAnnotation or LangChain agents with clientTools() middleware, with CloudBaseSaver for persistent multi-tenant checkpointing. - UI Client Integration: Build web clients with @ag-ui/client or WeChat Mini Program interfaces with @cloudbase/agent-ui-miniprogram, including client-side tool execution. - Use Case: You want to add a streaming AI chat assistant to a WeChat Mini Program. Use this Skill to deploy a LangGraph agent server with CloudBase persistence, then connect the Mini Program UI via the AG-UI behavior mixin with client tools like wx.showToast. ## Quick Start Ask the agent to deploy a LangGraph workflow as an AG-UI server with @cloudbase/agent-server and connect a WeChat Mini Program client to it.

Frequently Asked Questions about cloudbase-agent-ts

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

FAQPage Schema
How do I deploy a LangGraph agent as an HTTP server?

Use @cloudbase/agent-server's run() function with a LanggraphAgent wrapping your compiled StateGraph workflow. The workflow must be compiled with a checkpointer such as MemorySaver for development or CloudBaseSaver for production persistence.

How do I build a WeChat Mini Program chat UI for an AI agent?

Use @cloudbase/agent-ui-miniprogram's createAGUIBehavior mixin with a CloudbaseTransport configured with your bot ID. The behavior exposes this.agui.sendMessage() for sending messages and this.data.agui.uiMessages for rendering the conversation.

What is the difference between the LangGraph and LangChain adapters?

The LangGraph adapter wraps a compiled StateGraph workflow and provides ClientStateAnnotation with pre-wired messages and client tools fields. The LangChain adapter wraps agents created with LangChain's createAgent() and uses clientTools() middleware for client tool support.

How do client tools work in AG-UI agents?

Client tools are defined by the client and sent with the request. The server binds them to the model but routes client tool calls to END instead of executing them, letting the client run the handler locally and send the result back in a new request.

Can I persist agent conversation state across requests?

Yes, use CloudBaseSaver from @cloudbase/agent-adapter-langgraph, which stores checkpoints in Tencent CloudBase document database. Pass a userId extracted from the JWT Authorization header for multi-tenant isolation.

When should I not use the Cloudbase Agent TypeScript SDK?

Do not use it for simple AI model calls without agent capabilities, CloudBase cloud functions without agent features, or general CloudRun backend services. It is specifically for AG-UI protocol agent deployments in TypeScript projects.