現在のワークスペースに対して配置されたエージェントを呼び出します。
Synopsis
現在のワークスペースで配置されたエージェントを呼び出します。
メッセージは引数として指定するか、--ファイルオプションを使用するか、または標準入力(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)その他の参照
- agentengine - エージェント エンジン ローカル開発用 CLI。