cloudbase-agent-ts

Deploy TypeScript AI agents as AG-UI HTTP services with SSE event streaming.

Updated May 14, 2026
One-click install
npx skills add https://github.com/williamwang25/ams-admin --skill cloudbase-agent-ts-williamwang25
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbase-agent-ts
Source: https://github.com/williamwang25/ams-admin/tree/main/.claude/skills/cloudbase-agent-ts
Command: npx skills add https://github.com/williamwang25/ams-admin --skill cloudbase-agent-ts-williamwang25

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you ship AI agents as HTTP services that integrate cleanly with AG-UI clients, so you can stream events, support tool calls, and connect different UI platforms without rewriting your agent logic.

Core Features & Use Cases

  • Deploy AG-UI compatible agent servers: Expose agent endpoints (e.g., /send-message, /agui) using @cloudbase/agent-server.
  • Adapter-based framework integration: Wrap LangGraph workflows or LangChain agents through CloudBase’s TypeScript/JavaScript adapters.
  • Client tool and protocol event support: Handle AG-UI lifecycle events, streaming message/tool events, and client-executed tool flows via clientTools() / ClientStateAnnotation.
  • UI client enablement: Connect web clients with @ag-ui/client and WeChat Mini Program UIs with @cloudbase/agent-ui-miniprogram.

Quick Start

Deploy a CloudBase AG-UI agent HTTP service from a TypeScript LangGraph workflow and connect a web UI client to stream agent messages and tool-call events in real time.

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 an AI agent as an HTTP service using TypeScript?

You can deploy an AI agent as an HTTP service using TypeScript by implementing an AbstractAgent-compatible adapter with @cloudbase/agent-server, exposing endpoints like `/send-message` to handle streamed events and tool calls.

Does LangGraph work with the AG-UI protocol for streaming agent events?

Yes, LangGraph works with the AG-UI protocol by wrapping workflows through CloudBase’s TypeScript adapters to emit AG-UI lifecycle and tool-call events streamed directly to connected clients via SSE.

Can I connect a WeChat Mini Program UI to a LangChain agent server?

Yes, you can connect a WeChat Mini Program UI to a LangChain agent server using the `@cloudbase/agent-ui-miniprogram` package to stream real-time agent messages and handle tool-call events.

What is the best way to handle client-executed tool flows in AG-UI?

The best way to handle client-executed tool flows in AG-UI is using `clientTools()` and `ClientStateAnnotation` to manage state and stream tool events back to the web client interface.

Why do I need an AbstractAgent-compatible adapter for my agent server?

You need an AbstractAgent-compatible adapter to translate framework-specific logic into AG-UI protocol events, allowing your agent server to stream lifecycle and tool-call events consistently across different UI platforms.