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-id string required
Required connector identifier to route the request.
--messages string[] required

List of chat messages exchanged so far.

Repeatable: pass --messages multiple times to supply more than one value

--persist required
Whether to persist the chat and response to storage.
--content-references-disabled
If true, the response will not include content references.
--conversation-id string
Existing conversation ID to continue.
--is-stream
If true, the response will be streamed in chunks.
--lang-smith-api-key string
API key for LangSmith integration.
--lang-smith-project string
LangSmith project name for tracing.
--model string
Model ID or name to use for the response.
--prompt-id string
Prompt template identifier.
--response-language string
ISO language code for the assistant's response.
--input-file string
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