(A,B,FF,I) = setupCotangent(dimensions,Presentation=>Borel)
(D,FF,I) = setupCotangent(dimensions,Presentation=>EquivLoc)
This function sets up the various rings used by CotangentSchubert. Its behaviour depends on the value of the option Presentation.
With Presentation => Borel, setupCotangent returns a sequence made of two rings, a field and a list:

The first (resp. second) ring is the cohomology or Ktheory ring of the cotangent bundle of the flag variety specifided by the sequence of dimensions of flags (resp. of the corresponding full flag variety). The field is the base field (fraction field of the cohomology or Ktheory ring of a point). The list is a list of labels for the various classes that CotangentSchubert computes. The boolean option Ktheory specifies the choice of Ktheory or cohomology, whereas Equivariant specifies whether the equivariance is w.r.t. scaling of the fiber of the cotangent bundle only, or w.r.t. scaling and Cartan torus action.
With Presentation => EquivLoc:

the first output is a "diagonal algebra", i.e., a vector space over FF with componentwise product. The last two outputs are the same as above.
The object setupCotangent is a function closure.