Skip to content

Commit

Permalink
Add missing targetProjectParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Chong Tang committed Mar 29, 2022
1 parent 472892b commit b0ee984
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,21 @@
"verbose": {
"type": "boolean",
"description": "If true, the service will return more detailed information in the response."
},
"isLoggingEnabled": {
"type": "boolean",
"description": "If true, the service will keep the query for further review."
},
"directTarget": {
"type": "string",
"description": "The name of a target project to forward the request to."
},
"targetProjectParameters": {
"type": "object",
"description": "A dictionary representing the parameters for each target project.",
"additionalProperties": {
"$ref": "#/definitions/AnalysisParameters"
}
}
},
"required": [
Expand Down Expand Up @@ -256,21 +271,6 @@
"properties": {
"conversationItem": {
"$ref": "#/definitions/ConversationItemBase"
},
"directTarget": {
"type": "string",
"description": "The name of the target project this request is sending to directly."
},
"isLoggingEnabled": {
"description": "If true, the query will be kept by the service for customers to further review.",
"type": "boolean"
},
"parameters": {
"type": "object",
"description": "A dictionary representing the input for each target project.",
"additionalProperties": {
"$ref": "#/definitions/AnalysisParameters"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
"kind": "CustomConversation",
"analysisInput": {
"conversationItem": {
"language": "en-GB",
"text": "play a song from Phil Collins",
"participantId": "1",
"id": "1",
"modality": "text",
"language": "en-GB",
"text": "play a song from Phil Collins"
},
"isLoggingEnabled": false
"id": "1"
}
},
"parameters": {
"projectName": "{project-name}",
"deploymentName": "{deployment-name}",
"verbose": true
"verbose": true,
"isLoggingEnabled": false
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"parameters": {
"projectName": "{project-name}",
"deploymentName": "{deployment-name}",
"verbose": true
"verbose": true,
"isLoggingEnabled": false
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,35 @@
"kind": "CustomConversation",
"analysisInput": {
"conversationItem": {
"language": "en-GB",
"text": "play a song from Phil Collins",
"participantId": "1",
"id": "1",
"modality": "text",
"language": "en-GB",
"text": "How do I integrate QnA Maker and LUIS?"
},
"directTarget": "qnaTargetApp",
"parameters": {
"qnaTargetApp": {
"id": "1"
}
},
"parameters": {
"projectName": "prj1",
"deploymentName": "dep1",
"isLoggingEnabled": false,
"verbose": true,
"directTarget": "qnaProject",
"targetProjectParameters": {
"qnaProject": {
"targetKind": "question_answering",
"apiVersion": "v5.1",
"callingOptions": {
"question": "Ports and connectors",
"top": 3,
"userId": "Default",
"isTest": true,
"context": {
"previousQuery": "Meet Surface Pro 4",
"previousQnAId": 4
}
}
},
"top": 3,
"isTest": true,
"userId": "Default",
"question": "Ports and connectors"
},
"apiVersion": "v5.1"
}
}
},
"parameters": {
"projectName": "{project-name}",
"deploymentName": "{deployment-name}",
"verbose": true
}
}
},
Expand Down

0 comments on commit b0ee984

Please sign in to comment.