getCodeInterpreter method

Future<GetCodeInterpreterResponse> getCodeInterpreter({
  1. required String codeInterpreterId,
})

Gets information about a custom code interpreter.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException.

Parameter codeInterpreterId : The unique identifier of the code interpreter to retrieve.

Implementation

Future<GetCodeInterpreterResponse> getCodeInterpreter({
  required String codeInterpreterId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/code-interpreters/${Uri.encodeComponent(codeInterpreterId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCodeInterpreterResponse.fromJson(response);
}