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

agentengine 日志

流式传输代理运行时日志。

查看工作区的代理和工具运行时日志。

交互式查询最多涵盖 6 小时;如需查询更长的范围,请在多个窗口中进行,每个窗口最多 6 小时。--since 接受一个持续时间(默认为 1h)或 RFC3339 时间戳。--tail 返回最近的条目,上限为 5000;使用 --all 获取完整窗口。

仅在工作区部署后才会存在日志。对于 CLI 自身的诊断,请使用 agentengine debug logs。

例子:

agentengine logs --followagentengine logs --source agent --level error --grep "connection refused"
agentengine logs [flags]
--all Fetch all logs in the time range (auto-paginates through all pages within the 6-hour interactive window) --base-url string Platform base URL --context string Named context to target (see 'agentengine context list') --execution-id string Filter by execution ID-f, --follow Continuously poll for new logs --grep string Search log messages (case-insensitive substring match)-h, --help help for logs --json Output logs as JSON --level string Log level(s) to match exactly (debug, info, warn, error), comma- or space-separated --org-id string Organization ID --project-id string Project ID --session-id string Filter by session ID --since string Start time as duration (e.g. 30m, 2h) or RFC3339 timestamp (default "1h", maximum "6h") --source string Filter by source sandbox(s) (agent, tool), comma- or space-separated --tail int Number of most-recent entries to return (capped at 5000; use --all for the full window) (default 500) --until string End time as duration (e.g. 5m) or RFC3339 timestamp (default: now) --workspace string Monorepo: select 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)
给本页内容打分