对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

agentengine create

从入门模板构建一个新的代理。

从受支持的模板创建本地优先的入门代理,重写名称和包元数据等标识字段,写入个性化的环境文件,并打印特定于模板的下一个步骤。

交互式创建会在写入文件之前测试 LLM 连接。如果测试失败,您可以重新输入连接详细信息、重试或继续。在非交互式运行中,如果测试失败,--smoke-test 不会写入任何内容并以错误退出,因此您可以使用更正后的值重新运行相同的命令。手动 LLM 设置、客户端应用和仅内存项目会跳过此检查。

agentengine create [flags]
agentengine createagentengine create --name "Acme Assistant" --llm anthropic --memory
--dir string Target directory (default: ./<slug>)-h, --help help for create --json Output the scaffold result as JSON --llm string LLM connection: openai, anthropic, gemini, openrouter, openai-compatible, anthropic-compatible, or custom (configure in code) --llm-auth-header string Header field the compatible endpoint expects the API key in (default: inferred; authorization uses Bearer) --llm-base-url string Compatible endpoint base URL; its host is added to network.egress --llm-model string Model or deployment name (required for OpenRouter and compatible endpoints) --memory Enable memory for supported agent templates and prompt for Voyage API key --memory-only Scaffold a memory-only project (project-config.yaml only, no agent template) --name string Application display name --open-egress Allow open outbound access for Agent and Tool (writes network.egress_mode: allow_all) --smoke-test Send one Hello request to the selected LLM before writing files (10s timeout); if it fails, create writes nothing and exits with an error --template string Starter template to use (default: insurance-agent) --yes Accept defaults for optional prompts
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
给本页内容打分