stack kb security-ai-assistant-api chat-complete cli command
Auth required
elastic stack kb security-ai-assistant-api chat-complete \
--connector-id <connector-id> \
--messages <messages> \
--persist \
[options]
Create a model response
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--connector-idstringrequired- Required connector identifier to route the request.
--messagesstring[]required-
List of chat messages exchanged so far.
Repeatable: pass
--messagesmultiple times to supply more than one value --persistrequired- Whether to persist the chat and response to storage.
--content-references-disabled- If true, the response will not include content references.
--conversation-idstring- Existing conversation ID to continue.
--is-stream- If true, the response will be streamed in chunks.
--lang-smith-api-keystring- API key for LangSmith integration.
--lang-smith-projectstring- LangSmith project name for tracing.
--modelstring- Model ID or name to use for the response.
--prompt-idstring- Prompt template identifier.
--response-languagestring- ISO language code for the assistant's response.
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON