base44-platform-agents

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- GENERATED FILE. DO NOT EDIT. Compiled from the Base44 builder's prompt sources; the source commit is in /SOURCE_COMMIT at the repository root. Edits here are overwritten by the next sync; change the source instead. -->
<!-- 生成的文件,请勿编辑。由 Base44 builder 的 prompt sources 编译而成; 源提交记录位于仓库根目录的 /SOURCE_COMMIT 中。这里的修改会在下次同步时被覆盖; 请改为修改源文件。 -->

Base44 agents

Base44 agents

An agent is a
.jsonc
file under
base44/agents/
; writing it defines the agent. Build the conversation UI with the agents SDK, or run a code agent on the AI gateway.
Agent 是位于
base44/agents/
下的
.jsonc
文件;编写该文件即定义了一个 Agent。可以使用 agents SDK 构建对话 UI,也可以在 AI gateway 上运行 code agent。

Pick the reference for this app

为此应用选择参考资料

Determine the app profile first. Call
GET /api/apps/{app_id}/agent-profile
(over the Base44 MCP
execute_api
tool, or with your Base44 CLI token); it returns the framework, app type, runtime, entitlements and the exact reference files to read. Without it, detect from the project files:
src/routes/__root.*
and
src/routeTree.gen.ts
mean TanStack Start;
app/_layout.*
means a native mobile (Expo) app; otherwise it is a Vite SPA.
ProfileRead
Web app, Vite SPA (the default web template)Agents (Vite SPA: tools are backend functions)
Web app, TanStack StartAgents (TanStack Start: tools are server routes)
首先确定应用类型。通过 Base44 MCP 的
execute_api
工具或使用 Base44 CLI token,调用
GET /api/apps/{app_id}/agent-profile
;它会返回框架、应用类型、运行时、权限配置以及需要读取的确切参考文件。如果没有该信息,则根据项目文件进行检测:
src/routes/__root.*
和
src/routeTree.gen.ts
表示 TanStack Start;
app/_layout.*
表示原生移动应用(Expo);否则为 Vite SPA。
应用类型阅读
Web 应用,Vite SPA(默认 Web 模板)Agents(Vite SPA:工具是 backend functions)
Web 应用,TanStack StartAgents(TanStack Start:工具是 server routes)