[ACS-8399] Integrate all changes with backend (#10163)

This commit is contained in:
jacekpluta
2024-09-03 09:29:32 +02:00
committed by Aleksander Sklorz
parent dcaa736a0c
commit a21dc4d6a0
11 changed files with 66 additions and 130 deletions

View File

@@ -30,7 +30,8 @@ const searchAiApi = new SearchAiApi(alfrescoApi);
searchAiApi.ask([{
question: 'Some question',
restrictionQuery: 'Some restriction query'
restrictionQuery: 'Some restriction query',
agentId: 'Some agent id'
}]).then((questionInformation) => {
console.log('API called successfully. Returned data: ' + questionInformation);
});
@@ -146,11 +147,19 @@ searchAiApi.getAnswer('some question id').then((answer) => {
**Properties**
| Name | Type |
|----------------------|--------|
| **question** | string |
| **questionId** | string |
| **restrictionQuery** | string |
| Name | Type |
|----------------------|------------------|
| **question** | string |
| **questionId** | string |
| **restrictionQuery** | RestrictionQuery |
## RestrictionQuery
**Properties**
| Name | Type |
|--------------|----------|
| **nodesIds** | string[] |
## QuestionRequest
@@ -160,3 +169,4 @@ searchAiApi.getAnswer('some question id').then((answer) => {
|--------------|----------|
| **question** | string |
| **nodeIds** | string[] |
| **agentId** | string |