Para agentes de IA: hay un índice de documentación disponible en https://www.mongodb.com/es/docs/llms.txt — versiones en markdown de todas las páginas están disponibles agregando .md a cualquier ruta URL.

agentengine invocar

Invocar el agente implementado para el espacio de trabajo actual.

Invocar el agente implementado en el espacio de trabajo actual.

Proporcione el mensaje como argumento, a través de --archivo o en stdin. Sin entrada y con un terminal, el comando inicia una sesión de chat interactiva que transmite respuestas.

--payload adjunta un objeto JSON reenviado al agente como metadatos contextuales. En la sesión interactiva, /payload visualiza, establece o borra entre turnos, y /resume (guiado) o /resume <json> respuesta a una interrupción pendiente.

--resume reanuda una sesión suspendida en moda no interactivo y requiere --session. Moda interactiva rechaza --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)
Califique esta página