not an ai (yet), but there's a bsv_upvalues array on every answer with upvalue objects in it that should give you what you're looking for