Loading

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

--connector-id string required
Required connector identifier to route the request.
--messages string[] required
List of chat messages exchanged so far.
--[no-]persist required
Whether to persist the chat and response to storage.
--[no-]content-references-disabled
If true, the response will not include content references.
--conversation-id string
A string that does not contain only whitespace characters.
--[no-]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
-V --[no-]version
Print the Elastic CLI version
--config-file string
path to a config file (default: ~/.elasticrc.yml)
--use-context string
override the active context from the config file
--command-profile string
restrict available commands to a deployment profile (serverless, stack, default)
--[no-]json
output as JSON
--output-fields string
comma-separated list of fields to include in output (dot-notation supported)
--output-template string
Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--[no-]dry-run

validate all inputs and exit without performing any action (preview changes without applying them)