Para agentes de IA: um índice de documentação está disponível em https://www.mongodb.com/pt-br/docs/llms.txt — as versões de markdown de todas as páginas estão disponíveis anexando .md a qualquer caminho de URL.

agentengine create

Crie a estrutura de um novo agente a partir de um modelo inicial.

Crie um agente inicial local-first a partir de um modelo compatível, reescreva campos de identidade como nome e metadados do pacote, grave um arquivo de ambiente personalizado e imprima as próximas etapas específicas do modelo.

A criação interativa testa a conexão com a LLM antes de gravar arquivos. Se o teste falhar, você pode inserir novamente os detalhes da conexão, tentar novamente ou continuar. Em uma execução não interativa, --smoke-test não grava nada e sai com um erro quando o teste falha, para que você possa executar novamente o mesmo comando com valores corrigidos. Configurar manualmente a LLM, aplicativos cliente e projetos apenas na memória ignoram a verificação.

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)
Avalie esta página