Method AskQuestion
AskQuestion(String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string question, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | question | User input question |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typially parses JSON response |
AskQuestion(String, String, String, String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string uri, string question, string OcpApimSubscriptionKey, string ApimRequestId, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
System.String | question | User input question |
System.String | OcpApimSubscriptionKey | |
System.String | ApimRequestId | |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |
AskQuestion(String, String, Int32, String, String, Action<NLPResponse>)
Asks question to NLP service.
Declaration
public void AskQuestion(string uri, string question, int size, string OcpApimSubscriptionKey, string ApimRequestId, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
System.String | question | User input question |
System.Int32 | size | Size of desired returned answer set, defaults to 1 |
System.String | OcpApimSubscriptionKey | |
System.String | ApimRequestId | |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |