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

agentengine 日志导出

导出最多 24 小时的运行时日志。

将客户可见的代理和工具运行时日志导出为 gzip 压缩的 JSON Lines。

必须提供 --service。窗口最长为 24 小时;--since 接受持续时间或 RFC3339 时间戳,--until 默认为当前时间。下载以原子方式写入,因此失败或中断的导出不会在目标位置留下部分文件。输出路径必须不存在。大于 20 MiB(压缩后)或 100 MiB(解码后)的导出将被拒绝。

例子:

agentengine logs export --service agentagentengine logs export --service tool --since 6h --output logs.jsonl.gz
agentengine logs export [flags]
--base-url string Platform base URL --context string Named context to target (see 'agentengine context list')-h, --help help for export --org-id string Organization ID-o, --output string Output path (default: agent-logs-<service>-<end-time>.jsonl.gz) --project-id string Project ID --service string Required runtime service to export: agent or tool --since string Start time as a duration (e.g. 6h, 24h) or RFC3339 timestamp (maximum 24h) (default "24h") --until string End time as a 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)
给本页内容打分