현재 작업 영역에 대해 배포된 에이전트를 호출합니다.
Synopsis
현재 작업 영역에서 배포된 에이전트를 호출합니다.
메시지를 인수로 제공하거나, --file을 사용하거나, 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.