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

agentengine 调用

调用当前工作区中已部署的代理。

调用当前工作区中已部署的代理。

通过 --文件 参数或 stdin 提供消息。如果没有输入且处于终端中,该命令将启动一个流式传输响应的交互式聊天会话。

--payload 附加作为上下文元数据转发给代理的 JSON 对象。在交互式会话中,/payload 在回合之间查看、设置或清除它,和 /resume(导式)或 /resume <json> 回答未决中断。

--resume 在非交互模式下继续挂起的会话,并且需要 --session。交互模式拒绝 --json。

agentengine invoke [message] [flags]
agentengine invoke "Summarize the latest deployment"agentengine invoke --payload '{"screen":"policy-list"}' "What policies are available?"
--base-url string Platform base URL --context string Named context to target (see 'agentengine context list') --file string Read the message from a file-h, --help help for invoke --json Output JSON --org-id string Organization ID --payload string JSON object forwarded to the agent as contextual metadata (e.g. '{"screen":"policy-list"}') --project-id string Project ID --resume string JSON resume_map for continuing a suspended session (requires --session; mutually exclusive with MESSAGE, --file, and stdin) --session string Conversation session ID to resume or reuse. Omit to start a new session; each active session reserves runtime capacity --stream Stream response chunks as they arrive --timeout duration Maximum time to wait for each invoke request (default 10m0s) --user-id string User ID to pass to the deployed agent (on a project that enforces identity, only a service account may name a user other than itself; other callers are rejected with 403) --workspace string Monorepo: invoke a specific workspace by name (from root agent.yaml) --workspace-id string Workspace ID
--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)
给本页内容打分