Skip to main content

convex-agent

Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.

跳到安装

来源信息

仓库
get-convex/templates
最近来源活动
2026年8月4日 17:38
检测到的 SKILL.md 语言
英语
星标
135
分支
46

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
convex-agent
description
Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.
<!-- GENERATED from convex-agents content/capabilities/agent.json — do not edit by hand. --> # Add an AI agent / RAG backend Install @convex-dev/agent for durable threads, message history, tool-calls, and vector search/RAG — the backend for an in-app AI agent. ## Workflow 1. Install @convex-dev/agent + add to convex.config.ts. 2. Define the agent (model, tools, instructions); store the LLM key via the `env` micro power. 3. Create threads + stream messages; persist history in Convex. 4. For RAG: embed docs into a vector index and retrieve in the tool. ## Rules - Keep the LLM API key in Convex env (use the `env` micro power), never client-side. - Run model calls in actions ('use node' if the SDK needs it). - Persist threads/messages in Convex for durability + reactivity.
在 GitHub 查看