mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ACS-8398] Unit tests for agents and search ai (#9974)
* ACS-8398 Unit tests for search ai api and agents api * ACS-8398 Unit tests for getAnswer function from SearchAiApi, corrections for unit tests for SearchAiApi and AgentsApi * ACS-8398 Unit tests for SearchAiService and AgentService
This commit is contained in:
committed by
Aleksander Sklorz
parent
ad9c1a0ce0
commit
16e851e6b5
@@ -33,9 +33,9 @@ export class SearchAiApi extends BaseApi {
|
||||
ask(questions: QuestionRequest[]): Promise<QuestionModel[]> {
|
||||
return this.get({
|
||||
path: 'questions',
|
||||
bodyParam: questions.map((question) => ({
|
||||
...question,
|
||||
restrictionQuery: question.nodeIds.join(',')
|
||||
bodyParam: questions.map((questionRequest) => ({
|
||||
question: questionRequest.question,
|
||||
restrictionQuery: questionRequest.nodeIds.join(',')
|
||||
}))
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user