Security AI Assistant API
Create a model response
Spaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/security_ai_assistant/chat/complete</span></div>Refer to Spaces for more information.
Create a model response for the given chat conversation.
post/api/security_ai_assistant/chat/complete
Query parameters
content_references_disabledboolean
If true, the response will not include content references.
Request body
Example request
{
"connectorId": "conn-001",
"conversationId": "abc123",
"isStream": true,
"langSmithApiKey": "<LANGSMITH_API_KEY>",
"langSmithProject": "security_ai_project",
"messages": [
{
"content": "How do I detect ransomware on my endpoints?",
"data": {
"device_id": "device-567"
},
"fields_to_anonymize": [
"device.name",
"file.path"
],
"role": "user"
}
],
"model": "gpt-4",
"persist": true,
"promptId": "prompt_456",
"responseLanguage": "en"
}Response
Indicates a successful model response call.