aiMentorOrgsSessionsAskCreateWithHttpInfo method

Future<Response> aiMentorOrgsSessionsAskCreateWithHttpInfo(
  1. String org,
  2. String sessionId, {
  3. AskMentorRequest? askMentorRequest,
})

Send a custom json from langflow to answer a question

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> aiMentorOrgsSessionsAskCreateWithHttpInfo(String org, String sessionId, { AskMentorRequest? askMentorRequest, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/ai/mentor/orgs/{org}/sessions/{session_id}/ask/'
    .replaceAll('{org}', org)
    .replaceAll('{session_id}', sessionId);

  // ignore: prefer_final_locals
  Object? postBody = askMentorRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json', 'multipart/form-data', 'application/x-www-form-urlencoded'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}