Generate a chat completion
https://{kibana_url}
- POST /api/observability_ai_assistant/chat/complete
Create a new chat completion by using the Observability AI Assistant.
The API returns the model's response based on the current conversation context.
It also handles any tool requests within the conversation, which may trigger multiple calls to the underlying large language model (LLM).
This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Request
-
actionsobject -
descriptionstring -
The description of the function.
-
namestring -
The name of the function.
-
parametersobject -
The parameters of the function.
-
connectorIdstringrequired -
A unique identifier for the connector.
-
conversationIdstring -
A unique identifier for the conversation if you are continuing an existing conversation.
-
disableFunctionsboolean -
Flag indicating whether all function calls should be disabled for the conversation. If true, no calls to functions will be made.
-
instructions -
An array of instruction objects, which can be either simple strings or detailed objects.
-
messagesobjectrequired -
An array of message objects containing the conversation history.
-
@timestampstringrequired -
The timestamp when the message was created.
-
messageobjectrequired -
The main content of the message.
-
contentstring -
The content of the message.
-
datastring -
Additional data associated with the message.
-
eventstring -
The event related to the message.
-
function_call -
Details of the function call within the message.
-
namestring -
The name associated with the message.
-
persistbooleanrequired -
Indicates whether the conversation should be saved to storage. If true, the conversation will be saved and will be available in Kibana.
-
titlestring -
A title for the conversation.
Response
Successful response
Response Type: object